[HELP]Command says I am also not connected!!!
#5

pawn Код:
OMMAND:goto(playerid,params[])
{
    if(GetPVarInt(playerid,"Adminlevel") < 1) return SendClientMessage(playerid,COLOR_RED,"This command is only for admin level 1");
    new ID;
    if(sscanf(params,"u",ID)) return SendClientMessage(playerid,COLOR_RED,"USAGE:/goto [ID]");
    if(ID == playerid) return SendClientMessage(playerid,COLOR_RED,"You can't teleport to yourself");
    if(!IsPlayerConnected(ID)) return SendClientMessage(playerid,COLOR_RED,"The player is not connected");
    new Float:x,Float:y,Float:z;
    GetPlayerPos(ID,x,y,z);
    SetPlayerPos(playerid,x,y+1,z);
    return true;
}
vassilis [ PAWN ] [/ PAWN]
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)