/report problem
#9

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

pawn Код:
#include <sa-mp>
is, add

pawn Код:
#include <zcmd>
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

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.
Reply


Messages In This Thread
/report problem - by MeNMyselv - 12.07.2011, 15:05
Re: /report problem - by Shadoww5 - 12.07.2011, 15:38
Re: /report problem - by MeNMyselv - 12.07.2011, 15:39
Re: /report problem - by MeNMyselv - 12.07.2011, 15:41
Re: /report problem - by MeNMyselv - 12.07.2011, 15:44
Re: /report problem - by MeNMyselv - 12.07.2011, 16:04
Re: /report problem - by Unte99 - 12.07.2011, 16:16
Re: /report problem - by MeNMyselv - 12.07.2011, 16:48
Re: /report problem - by Unte99 - 12.07.2011, 17:46
Re: /report problem - by Shadoww5 - 12.07.2011, 20:11

Forum Jump:


Users browsing this thread: 1 Guest(s)