[HELP]: Commands
#2

Try this.
pawn Код:
CMD:slap(playerid, params[])
{
    new targetid; new string[150]; new Float: x, Float: y, Float: z;
    if(sscanf(params, "u", targetid))return SendClientMessage(playerid, GREY, "[USAGE]: /slap {FF0000}[PlayerID]");
    if(!IsPlayerConnected(targetid))return SendClientMessage(playerid, RED, "[SERVER]: {FFFFFF}This player is {FF0000}NOT {FFFFFF}valid !");
    format(string, sizeof(string), "{FFFFFF}[SERVER]: {800080}%s(ID:%d) {FFFFFF}has been slapped by {800080}%s(ID:%d) {FFFFFF}!", GetName(targetid), targetid, GetName(playerid), playerid);
    SendClientMessageToAll(PURPLE, string);
    GetPlayerPos(targetid, x, y, z);
    SetPlayerPos(targetid, x, y, z +10);
    return 1;
}
Reply


Messages In This Thread
[HELP]: Commands - by Areax - 01.11.2013, 20:45
Re: [HELP]: Commands - by zT KiNgKoNg - 01.11.2013, 20:48
Re: [HELP]: Commands - by Konstantinos - 01.11.2013, 20:48
Re: [HELP]: Commands - by Areax - 01.11.2013, 20:51
Re: [HELP]: Commands - by Areax - 01.11.2013, 21:41
Re: [HELP]: Commands - by DaniceMcHarley - 01.11.2013, 21:47
Re: [HELP]: Commands - by Konstantinos - 02.11.2013, 10:02
Re: [HELP]: Commands - by Ghazal - 02.11.2013, 10:53

Forum Jump:


Users browsing this thread: 1 Guest(s)