Error
#9

pawn Код:
dcmd_goto(playerid,params[])
{
if(IsPlayerAdmin(playerid))
{
if (sscanf(params,"u",id))
{
SendClientMessage(playerid,COLOR,"[USAGE] /goto [ID]");
}
else if(!IsPlayerConnected(id))
{
SendClientMessage(playerid,COLOR,"[ERROR] Player is not connected");
}
else if(playerid == id) {
SendClientMessage(playerid,COLOR,"[ERROR] You can't teleport yourself.");
}
else
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(id,X,Y,Z);
SetPlayerPos(playerid,X,Y,Z);
}
}
else
{
SendClientMessage(playerid,COLOR,"[ERROR] You are not logged in at rcon.");
}
return 1;
}
Just made it as I don't have it yet, here you go! (untested)
Reply


Messages In This Thread
Error - by JoeDaDude - 31.12.2009, 14:26
Re: Error - by Marcel - 31.12.2009, 14:27
Re: Error - by Correlli - 31.12.2009, 14:27
Re: Error - by Nameless303 - 31.12.2009, 14:28
Re: Error - by JoeDaDude - 31.12.2009, 14:35
Re: Error - by Marcel - 31.12.2009, 14:53
Re: Error - by JoeDaDude - 31.12.2009, 15:29
Re: Error - by JoeDaDude - 31.12.2009, 16:54
Re: Error - by KnooL - 31.12.2009, 17:30
Re: Error - by JoeDaDude - 31.12.2009, 17:37

Forum Jump:


Users browsing this thread: 3 Guest(s)