31.01.2017, 16:55
Maybe you wanted this CMD :
PHP код:
CMD:slap(playerid, params[])
{
new Float:X, Float:Y, Float:Z, giveplayerid;
if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, -1, "[USAGE]: /slap [playerid]");
if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, -1, "Invalid Player ID.");
GetPlayerPos(giveplayerid, X, Y, Z);
SetPlayerPos(giveplayerid, X, Y, Z+3);
return 1;
}