[dcmd] goto problems
#2

pawn Код:
dcmd_goto(playerid,params[])
{
    if(PlayerInfo[playerid][AdminLevel] < 1) return SendClientMessage(playerid, COLOR_RED, "You are not authorized to use that command!");
    new player1;
    if(sscanf(params, "u", player1)) return SendClientMessage(playerid, COLOR_RED, "Usage: /goto [playerid]");
    new Float:XX, Float:YY, Float:ZZ;
    if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
    GetPlayerPos(player1, XX, YY, ZZ);//
    SetPlayerPos(playerid, XX, YY, ZZ);
    SetPlayerVirtualWorld(player1, GetPlayerVirtualWorld(playerid));
    SetPlayerInterior(player1,GetPlayerInterior(playerid));
    }
    return true;
}
Reply


Messages In This Thread
[dcmd] goto problems - by jonnyboy - 12.05.2011, 18:43
Respuesta: [dcmd] goto problems - by K9- - 12.05.2011, 19:08
Re: [dcmd] goto problems - by Laronic - 12.05.2011, 19:40

Forum Jump:


Users browsing this thread: 1 Guest(s)