09.03.2016, 13:21
I suggest you to optimise your scripts like this:
PHP код:
ocmd:goto(playerid, params[])
{
new Float:Pos[3];
if(sscanf(params, "u", strval(params))) return SendClientMessage(playerid, -1, "{FF8000}Syntax: /Goto [ID]");
if(strval(params) == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "{FF8000}ERROR: Player not connected!");
if(strval(params) == playerid) return SendClientMessage(playerid, -1, "{FF8000}ERROR: You can't teleport to Yourself!");
GetPlayerPos(strval(params), Pos[0], Pos[1], Pos[2]); SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); return 1;
}