24.04.2016, 12:06
Is this right?
No error but it says CMD_NSlap should return a value, If i try then it says unknown command, Maybe something wrong in it?
No error but it says CMD_NSlap should return a value, If i try then it says unknown command, Maybe something wrong in it?
PHP код:
CMD:NSlap(playerid, params[])
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
{
if(IsPlayerInRangeOfPoint(i, 5.0, x, y, z))
{
SetPlayerPos(i, x, y, z+3);
SendClientMessage(i, 0xFF000FF, "!Tested!");
}
return 1;
}
return 1;
}
}