if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pORG] >= 1 || PlayerInfo[playerid][pVIP] >= 1 )
if(PlayerInfo[playerid][pAdmin] < 1 || PlayerInfo[playerid][pORG] < 1 || PlayerInfo[playerid][pVIP] <1 )
if(!strcmp(cmdtext, "/veh", true))
{
if(PlayerInfo[playerid][pAdmin] < 1)return SendClientMessage(playerid,VERMELHO,"[Erro] Vocк nгo tem permissгo para usar este comando.");
{
ShowPlayerDialog(playerid,DIALOG_CARROS, DIALOG_STYLE_LIST, "Carros", "Sultan \nInfernus \nФnibus 1 \nBMX \nMountain Bike \nФnibus 2 \nFaggio \nSanchez \nQuad \nPacker \nCamper \nVortex \nNRG-500\nSolair", "Criar", "Cancelar");
}
return 1;
}
if(!strcmp(cmdtext, "/veh", true))
{
if(PlayerInfo[playerid][pAdmin] < 1)
return SendClientMessage(playerid,VERMELHO,"[Erro] Vocк nгo tem permissгo para usar este comando.");
ShowPlayerDialog(playerid,DIALOG_CARROS, DIALOG_STYLE_LIST, "Carros", "Sultan \nInfernus \nФnibus 1 \nBMX \nMountain Bike \nФnibus 2 \nFaggio \nSanchez \nQuad \nPacker \nCamper \nVortex \nNRG-500\nSolair", "Criar", "Cancelar");
return 1;
}
pawn Код:
|
if(!strcmp(cmdtext, "/veh", true))
{
if(PlayerInfo[playerid][pAdmin] < 1 || PlayerInfo[playerid][pORG] < 1 || PlayerInfo[playerid][pVIP] < 1 )
return SendClientMessage(playerid,VERMELHO,"[Erro] Vocк nгo tem permissгo para usar este comando.");
ShowPlayerDialog(playerid,DIALOG_CARROS, DIALOG_STYLE_LIST, "Carros", "Sultan \nInfernus \nФnibus 1 \nBMX \nMountain Bike \nФnibus 2 \nFaggio \nSanchez \nQuad \nPacker \nCamper \nVortex \nNRG-500\nSolair", "Criar", "Cancelar");
return 1;
}
if(!strcmp(cmdtext, "/veh", true))
{
if(PlayerInfo[playerid][pAdmin] < 1 || PlayerInfo[playerid][pORG] < 1 || PlayerInfo[playerid][pVIP] < 1 )
return SendClientMessage(playerid,VERMELHO,"[Erro] Vocк nгo tem permissгo para usar este comando.");
ShowPlayerDialog(playerid,DIALOG_CARROS, DIALOG_STYLE_LIST, "Carros", "Sultan \nInfernus \nФnibus 1 \nBMX \nMountain Bike \nФnibus 2 \nFaggio \nSanchez \nQuad \nPacker \nCamper \nVortex \nNRG-500\nSolair", "Criar", "Cancelar");
return 1;
}
if(PlayerInfo[playerid][pAdmin] <= 1 || PlayerInfo[playerid][pORG] == 1 || PlayerInfo[playerid][pVIP] <= 1 )
if(!strcmp(cmdtext, "/veh", true))
{
if(!PlayerInfo[playerid][pAdmin] && !PlayerInfo[playerid][pORG] && !PlayerInfo[playerid][pVIP])
return SendClientMessage(playerid,VERMELHO,"[Erro] Vocк nгo tem permissгo para usar este comando.");
ShowPlayerDialog(playerid,DIALOG_CARROS, DIALOG_STYLE_LIST, "Carros", "Sultan \nInfernus \nФnibus 1 \nBMX \nMountain Bike \nФnibus 2 \nFaggio \nSanchez \nQuad \nPacker \nCamper \nVortex \nNRG-500\nSolair", "Criar", "Cancelar");
return 1;
}
pawn Код:
|