Código:
CMD:teste(playerid) {
SendClientMessage(playerid, -1, "Teste CMD");
printf(" teste cmd");
return 1;
}
Código:
public OnPlayerCommandReceived(playerid, cmd[], params[], flags)
{
printf("player %d doesn’t have access to command '%s'", playerid, cmd);
return 1;
}
public OnPlayerCommandPerformed(playerid, cmd[], params[], result, flags)
{
if (result == -1)
{
SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Unknown command.");
return 0;
}
return 1;
}
Código:
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[05:01:34] password = "" (string)
[05:01:34] filterscripts = "" (string)
[05:01:34]
[05:01:34] Server Plugins
[05:01:34] --------------
[05:01:34] Loading plugin: crashdetect.so
[05:01:34] CrashDetect plugin 4.20
[05:01:34] Loaded.
[05:01:34] Loading plugin: pawncmd.so
[05:01:34] [Pawn.CMD] plugin v3.3.6 loading...
[05:01:34] [Pawn.CMD]
| Pawn.CMD 3.3.6 | 2016 - 2021
|--------------------------------
| Author and maintainer: katursis
| Compiled: Sep 26 2021 at 08:25:00
|--------------------------------------------------------------
| Repository: https://github.com/katursis/Pawn.CMD
[05:01:34] Loaded.
[05:01:34] Loading plugin: mysql.so
[05:01:34] >> plugin.mysql: R41-4 successfully loaded.
[05:01:34] Loaded.
[05:01:34] Loading plugin: streamer.so
[05:01:34]
*** Streamer Plugin v2.9.5 by Incognito loaded ***
[05:01:34] Loaded.
[05:01:34] Loading plugin: sscanf.so
[05:01:34]
[05:01:34] ===============================
[05:01:34] sscanf plugin loaded.
[05:01:34] Version: 2.8.1
[05:01:34] (c) 2012 Alex "Y_Less" Cole
[05:01:34] ===============================
[05:01:34] Loaded.
[05:01:34] Loading plugin: mapandreas.so
[05:01:34] Loaded.
[05:01:34] Loading plugin: sampvoice.so
[05:01:34] [sv:dbg:network:init] : module initializing...
[05:01:34] [dbg:raknet:init] : module initializing...
[05:01:34] [dbg:raknet:init] : module initialized
[05:01:34] [sv:dbg:network:init] : module initialized
[05:01:34] [sv:dbg:main:Load] : creating 8 work threads...
[05:01:34] -------------------------------------------
[05:01:34] ___ __ __ _
[05:01:34] / __| __ _ _ __ _ _\ \ / /__ (_) __ ___
[05:01:34] \__ \/ _` | ' \| '_ \ / _ \| |/ _/ -_)
[05:01:34] |___/\__,_|_|_|_| .__/\_/\___/|_|\__\___|
[05:01:34] |_|
[05:01:34] -------------------------------------------
[05:01:34] SampVoice by MOR loaded
[05:01:34] -------------------------------------------
[05:01:34] Loaded.
[05:01:34] Loaded 7 plugins.
[05:01:35]
[05:01:35] Ban list
[05:01:35] --------
[05:01:35] Loaded: samp.ban
[05:01:35]
[05:01:35]
[05:01:35] Filterscripts
[05:01:35] ---------------
[05:01:35] Loaded 0 filterscripts.
[05:01:35] [sv:dbg:main:AmxLoad] : net game pointer (value:0xa1191c0) received
[05:01:35] [sv:dbg:network:bind] : voice server running on port 48742
[05:01:35] [BANCO DE DADOS] Banco de dados CONECTADO!