31.03.2012, 11:50
Try this:
should work.
pawn Код:
CMD:slap(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new sID;
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COL_GREEN, "SERVER: Ainult adminid alates level 2 saavad seda kasutada!");
if(sscanf(params, "u", sID)) return SendClientMessage(playerid, COL_GREY, "SERVER: Хige kasutus: /slap ID");
new Float:x, Float:y, Float:z, Float:nurk;
GetPlayerPos(sID, x, y, z);
GetPlayerFacingAngle(sID, nurk);
SetPlayerPos(sID, Float:x, Float:y, Float:z+5);
SetPlayerFacingAngle(sID, Float: nurk);
}
return 1;
}