[Ajuda] /Espiar
#5

Tenta ae


PHP код:
CMD:espiar(playeridparams[])
{
    new 
giverid;
    if(
PlayerInfo[playerid][pAdmin] < 1000) return SendClientMessage(playeridVERMELHO_ESCURO"[ x ] Vocк nгo tem Autorizaзгo.");
    if(
sscanf(params"u"giverid)) return SendClientMessage(playeridVERMELHO_ESCURO"[ x ] Use /espiar [ ID ]");
    
MinhaSkin[playerid] = GetPlayerSkin(playerid);
    
MeuMundoVirtual[playerid] = GetPlayerVirtualWorld(playerid);
    
Interior[playerid] = GetPlayerInterior(playerid);
    
PlayerEspiado[playerid] = giverid;
    
PlayerInfo[playerid][Assistindo] = true;
    
SendClientMessage(playeridVERMELHO_ESCURO"[ x ] {FFFFFF}Para parar de espiar use {FF0000}/espiaroff");
    if(
IsPlayerInAnyVehicle(giverid))
    {
        
TogglePlayerSpectating(playerid1);
        
PlayerSpectateVehicle(playeridGetPlayerVehicleID(giverid));
        
gSpectateType[playerid] = ADMIN_SPEC_TYPE_VEHICLE;
        
SetPlayerVirtualWorld(playeridGetPlayerVirtualWorld(giverid));
        
SetPlayerInterior(playeridGetPlayerInterior(giverid));
    }
    else
    {
        
PlayerSpectatePlayer(playeridgiverid);
        
TogglePlayerSpectating(playerid1);
        
gSpectateType[playerid] = ADMIN_SPEC_TYPE_PLAYER;
        
SetPlayerInterior(playeridGetPlayerInterior(giverid));
    }
    return 
1;

Reply


Messages In This Thread
/Espiar - by Maklister - 14.01.2013, 21:49
Respuesta: /Espiar - by Wellington1999 - 14.01.2013, 22:01
Re: Respuesta: /Espiar - by Maklister - 14.01.2013, 22:04
Respuesta: /Espiar - by Wellington1999 - 14.01.2013, 22:10
Re: /Espiar - by Supera - 14.01.2013, 22:10
Re: /Espiar - by Gleisson_. - 14.01.2013, 22:12
Re: /Espiar - by Maklister - 14.01.2013, 22:12
Respuesta: Re: /Espiar - by DKDarkking - 27.05.2015, 19:12

Forum Jump:


Users browsing this thread: 1 Guest(s)