04.03.2011, 10:12
Hi.
I have this goto command and if someone is in a stadium and I goto, it will be all white.. its the same with /get when im in a stadium and i do /get it will be white for them
i got this, but doesnt work please help
Also how can I make a command only work with PLAYERID not name with sscanf?
I have this goto command and if someone is in a stadium and I goto, it will be all white.. its the same with /get when im in a stadium and i do /get it will be white for them
i got this, but doesnt work please help
pawn Код:
COMMAND:goto(playerid,params[])
{
new pid;
new world = GetPlayerVirtualWorld(playerid);
new interior = GetPlayerInterior(playerid);
if(PlayerInfo[playerid][pAdminLevel] >=1)
{
if(sscanf(params, "u", pid)) return SendClientMessage(playerid, Yellow, "USAGE: /goto <playerid>");
if(!IsPlayerConnected(pid)) return SendClientMessage(playerid, Red, "Player not connected");
new Float:X, Float:Y, Float:Z;
GetPlayerPos(pid,X, Y, Z);
SetPlayerPos(playerid,X, Y, Z);
SetPlayerInterior(pid,interior);
SetPlayerVirtualWorld(pid, world);
SendClientMessage(playerid, Green, "Teleported !");
} else if(PlayerInfo[playerid][pAdminLevel] == 0) return 0;
return 1;
}