25.04.2016, 14:35
Try this out:
PHP код:
CMD:slap(playerid, params[])
{
new Float:x,Float:y,Float:z;
new id;
GetPlayerPos(playerid,x,y,z);
if(sscanf(params, "u", id))
{
if(!IsPlayerConnected(id))
{
if(IsPlayerInRangeOfPoint(id, 5.0, x, y, z))
{
SetPlayerPos(id, x, y, z+3);
}
}
}
return 1;
}