12.07.2011, 17:46
Download the include from here http://forum.sa-mp.com/showthread.ph...highlight=zcmd
Put the include in the Yourserver/pawno/includes folder. Then in your gamemode at the top where
is, add
And your'e good to go.
Write your commands not in callbacks(callback, ex.: OnGameModeInit). Not in callbacks. I would suggest after the OnPlayerCommandText callbacb, like this:
And also, it would be good if you would have sscanf2 or sscanf include. Sscanf2 link: http://forum.sa-mp.com/showthread.ph...hlight=sscanf2
EDIT: Just added the message, that will be sent to the admins or someone... Just PM me if you don't understand something or if you want me to do that the report message would be sent to the admins.
Put the include in the Yourserver/pawno/includes folder. Then in your gamemode at the top where
pawn Код:
#include <sa-mp>
pawn Код:
#include <zcmd>
Write your commands not in callbacks(callback, ex.: OnGameModeInit). Not in callbacks. I would suggest after the OnPlayerCommandText callbacb, like this:
And also, it would be good if you would have sscanf2 or sscanf include. Sscanf2 link: http://forum.sa-mp.com/showthread.ph...hlight=sscanf2
pawn Код:
OnPlayerCommandText(..........)
{
return 1;
}
////// MY COMMANDS
CMD:report(playerid, params[])
{
new targetid, reason,message[50];
if(!sscanf(params, "is", targetid,reason))
format(message, sizeof message, "Report from [%i] %i: %s", playerid, targetid, reason);
SendClientMessage(playerid, 0xFFFF00FF, "Your report message was sent to online administrators, thank you.");
SendClientMessage(playerid, 0xFFFF00FF, "We will find a solution soon. We will let you know what we did.");
return 1;
}
CMD:.....
CMD:.....
EDIT: Just added the message, that will be sent to the admins or someone... Just PM me if you don't understand something or if you want me to do that the report message would be sent to the admins.