[NEED] I need a /slap command.
#7

pawn Код:
if(!strcmp("/slap",cmdtext,true)) {
    new id, slapitavanimi[MAX_PLAYER_NAME], slapijanimi[MAX_PLAYER_NAME], string[128], Float:slx, Float:sly, Float:slz;
    if(!IsPlayerAdmin(playerid)) return 0;
    if(sscanf(cmdtext,"i", id)) return SendClientMessage(playerid, COLOR_GRAD1,"USEAGE: /slap [playerid]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_GRAD2, "Wrong player ID!");
   
    GetRPName(id, slapitavanimi, sizeof(slapitavanimi));
    GetRPName(playerid, slapijanimi, sizeof(slapijanimi));
    GetPlayerPos(slapitav, slx, sly, slz);
    SetPlayerPos(slapitav, slx, sly, slz+5);
    format(string, 256, "%s got slapped by admin %s.", slapitavanimi, slapijanimi);
    SendClientMessageToAll(-1,string);
    print(string);
    return 1;
}
Reply


Messages In This Thread
[NEED] I need a /slap command. - by Robinn - 10.12.2012, 17:02
Re: [NEED] I need a /slap command. - by dr.lozer - 10.12.2012, 17:02
Re: [NEED] I need a /slap command. - by Robinn - 10.12.2012, 17:04
Re: [NEED] I need a /slap command. - by Robinn - 10.12.2012, 17:07
Re: [NEED] I need a /slap command. - by Mr.Anonymous - 10.12.2012, 17:12
Re: [NEED] I need a /slap command. - by tsonn1 - 10.12.2012, 17:18
Re: [NEED] I need a /slap command. - by dr.lozer - 10.12.2012, 17:21
Re: [NEED] I need a /slap command. - by Robinn - 10.12.2012, 17:22
Re: [NEED] I need a /slap command. - by Sting. - 10.12.2012, 17:23
Re: [NEED] I need a /slap command. - by tsonn1 - 10.12.2012, 17:25

Forum Jump:


Users browsing this thread: 1 Guest(s)