questions
#1

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

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;
}
Also how can I make a command only work with PLAYERID not name with sscanf?
Reply


Messages In This Thread
questions - by xir - 04.03.2011, 10:12
Re: questions - by Mean - 04.03.2011, 10:14
Re: questions - by xir - 04.03.2011, 10:15
Re: questions - by Mean - 04.03.2011, 10:17
Re: questions - by xir - 04.03.2011, 10:19

Forum Jump:


Users browsing this thread: 2 Guest(s)