11.11.2016, 01:24
Or if use zmcd with ssanf which is more faster than strcmp:
PHP код:
CMD:goto(playerid, params[])
{
new cible;
if(sscanf(params, "u", cible)) return SCM(playerid, -1, "/goto [playerid/name]");
if(!IsPlayerConnected(cible))
return 1;
new Float:x,
Float:y,
Float:z;
GetPlayerPos(cible, x, y, z);
SetPlayerPos(playerid, x+1, y+1, z);
SetPlayerInterior(playerid, GetPlayerInterior(cible));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(cible));
return 1;
}