[Ajuda] Liberar comando pra VIPS
#1

Alguйm me ajuda como posso liberar esse comando pros players VIPS?

PHP код:
if(strcmp(cmd"/ir"true) == 0) {
new 
aname[MAX_PLAYER_NAME];
GetPlayerName(playeridanameMAX_PLAYER_NAME);
format(filesizeof(file), PASTA_CONTASaname);
if(
pAdmin[playerid] > 0   || dini_Int(file"Profissao") == Guardiao){
new 
tmp[256];
new 
plid;
tmp strtok(cmdtextidx);
if(!
strlen(tmp)) {
SendClientMessage(playeridVermelho"[ERRO] Digite: /ir [id]");
return 
1;
}
plid strval(tmp);
if(
IsPlayerConnected(plid)){
new 
interiordele;
interiordele GetPlayerInterior(plid);
SetPlayerInterior(playeridinteriordele);
new 
Float:XFloat:YFloat:Z;
GetPlayerPos(plidXYZ);
SetPlayerPos(playeridXYZ);
{
new 
VehicleID;
VehicleID GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,X+1,Y+1,Z);
PutPlayerInVehicle(playerid,VehicleID,0);
}
new 
pname[MAX_PLAYER_NAME];
GetPlayerName(plidpnameMAX_PLAYER_NAME);
format(stringsizeof(string), "[NH] O Administrador %s (%d) foi atй sua posiзгo para ajuda-lo!"aname,playerid);
SendClientMessage(plid,tcadmstring);
return 
1;
}else{
SendClientMessage(playeridVermelho"[ERRO]ID invбlido");
return 
1;
}
}

Reply
#2

Basta Voce Colocar a Variavel dos Players VIP

pawn Код:
if(pAdmin[playerid] > 0   || dini_Int(file, "Profissao") == Guardiao){
// Exemplo
if(pVip[playerid] >=1 || if(pAdmin[playerid] >0 || dini_Int(file,"Profissao") == Guardiao){
Reply
#3

PHP код:
if(strcmp(cmd"/ir"true) == 0) {
new 
aname[MAX_PLAYER_NAME];
GetPlayerName(playeridanameMAX_PLAYER_NAME);
format(filesizeof(file), PASTA_CONTASaname);
if(
vip[playerid] == || pAdmin[playerid] > 0   || dini_Int(file"Profissao") == Guardiao){
new 
tmp[256];
new 
plid;
tmp strtok(cmdtextidx);
if(!
strlen(tmp)) {
SendClientMessage(playeridVermelho"[ERRO] Digite: /ir [id]");
return 
1;
}
plid strval(tmp);
if(
IsPlayerConnected(plid)){
new 
interiordele;
interiordele GetPlayerInterior(plid);
SetPlayerInterior(playeridinteriordele);
new 
Float:XFloat:YFloat:Z;
GetPlayerPos(plidXYZ);
SetPlayerPos(playeridXYZ);
{
new 
VehicleID;
VehicleID GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,X+1,Y+1,Z);
PutPlayerInVehicle(playerid,VehicleID,0);
}
new 
pname[MAX_PLAYER_NAME];
GetPlayerName(plidpnameMAX_PLAYER_NAME);
format(stringsizeof(string), "[NH] O Administrador %s (%d) foi atй sua posiзгo para ajuda-lo!"aname,playerid);
SendClientMessage(plid,tcadmstring);
return 
1;
}else{
SendClientMessage(playeridVermelho"[ERRO]ID invбlido");
return 
1;
}
}

Reply
#4

PHP код:
if(strcmp(cmd"/ir"true) == 0)
{
    new 
aname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridanameMAX_PLAYER_NAME);
    
format(filesizeof(file), PASTA_CONTASaname);
    if(
PlayerInfo[playerid][pVip] >= || pAdmin[playerid] > || dini_Int(file"Profissao") == Guardiao)
    {
        new 
tmp[256];
        new 
plid;
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp))
        {
            
SendClientMessage(playeridVermelho"[ERRO] Digite: /ir [id]");
            return 
1;
        }
        
plid strval(tmp);
        if(
IsPlayerConnected(plid))
        {
            new 
interiordele;
            
interiordele GetPlayerInterior(plid);
            
SetPlayerInterior(playeridinteriordele);
            new 
Float:XFloat:YFloat:Z;
            
GetPlayerPos(plidXYZ);
            
SetPlayerPos(playeridXYZ);
            {
                new 
VehicleID;
                
VehicleID GetPlayerVehicleID(playerid);
                
SetVehiclePos(VehicleID,X+1,Y+1,Z);
                
PutPlayerInVehicle(playerid,VehicleID,0);
            }
            new 
pname[MAX_PLAYER_NAME];
            
GetPlayerName(plidpnameMAX_PLAYER_NAME);
            
format(stringsizeof(string), "[NH] O Administrador %s (%d) foi atй sua posiзгo para ajuda-lo!"aname,playerid);
            
SendClientMessage(plid,tcadmstring);
            return 
1;
        }
        else
        {
            
SendClientMessage(playeridVermelho"[ERRO]ID invбlido");
            return 
1;
        }
    }

Reply
#5

Valeu galera!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)