Ajuda Com /rbrall /rbqall -
lucasbjs0 - 21.01.2013
Aew Galera e eu to com um probleminha aki, Tipo Quando Um Lider De Org De Policia Digita /rbrall ou /rbrall que significa /rbrall= Remover Todas Barreiras /rbqall= Remover Todos Bloqueios.
Bom Quando um Lider De Org Policia Digita /rbrall ele remove todas as barreiras do server mais eu queria saber se tem como ele apenas remover as barreiras da org dele.
ai quando ele fosse digitar /rbrall aparecia "Todas as Barreias Da B.O.P.E Foram Tiradas Por Fulanode_Tal"
Bom EU Ja Consegui Criar O anuncio de quando o cara for digitar o /rbrall ou /rbqall e aparecer "Todas as Barreias da B.O.P.E Foram Tiradas Por Fulanode_Tal"
/rbqall
PHP код:
if(strcmp(cmd, "/removerbloqueioall", true)==0 || strcmp(cmd, "/rbqall", true)==0)
{
if (PlayerInfo[playerid][pLider] != 1 && PlayerInfo[playerid][pCargo] != 5 && PlayerInfo[playerid][pLider] != 2 && PlayerInfo[playerid][pCargo] != 5 && PlayerInfo[playerid][pLider] != 3 && PlayerInfo[playerid][pCargo] != 5 && PlayerInfo[playerid][pLider] != 11 && PlayerInfo[playerid][pCargo] != 5
&& PlayerInfo[playerid][pLider] != 16 && PlayerInfo[playerid][pCargo] != 5 && PlayerInfo[playerid][pAdmin] >= 1 && GetPlayerOrg(playerid) != 1 && GetPlayerOrg(playerid) != 2 && GetPlayerOrg(playerid) != 3 && GetPlayerOrg(playerid) != 11 && GetPlayerOrg(playerid) != 16 && IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й um oficial ou Seu Cargo e Baixo !");
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(pRoadCones[i] != 0)
{
RemoveRoadCones(i);
}
}
}
format(string, sizeof(string), "Todos Os Bloqueios Da %s Foram Tirados Por %s. ID:[%d]", NomeORG(playerid), PlayerName(playerid), playerid);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsACop(i))
{
SendClientMessage(i, TEAM_BLUE_COLOR, string);
}
}
}
}
return true;
}
/rbrall
PHP код:
if(strcmp(cmd, "/removertodasbarreiras", true)==0 || strcmp(cmd, "/rbrall", true)==0)
{
if (PlayerInfo[playerid][pLider] != 1 && PlayerInfo[playerid][pCargo] != 5 && PlayerInfo[playerid][pLider] != 2 && PlayerInfo[playerid][pCargo] != 5 && PlayerInfo[playerid][pLider] != 3 && PlayerInfo[playerid][pCargo] != 5 && PlayerInfo[playerid][pLider] != 11 && PlayerInfo[playerid][pCargo] != 5
&& PlayerInfo[playerid][pLider] != 16 && PlayerInfo[playerid][pCargo] != 5 && PlayerInfo[playerid][pAdmin] >= 1 && GetPlayerOrg(playerid) != 1 && GetPlayerOrg(playerid) != 2 && GetPlayerOrg(playerid) != 3 && GetPlayerOrg(playerid) != 11 && GetPlayerOrg(playerid) != 16 && IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й um oficial ou Seu Cargo e Baixo !");
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(pRoadblock[i] != 0)
{
RemoveRoadblock(i);
}
}
format(string, sizeof(string), "Todos Os Bloqueios Da %s Foram Tirados Por %s. ID:[%d]", NomeORG(playerid), PlayerName(playerid), playerid);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsACop(i))
{
SendClientMessage(i, TEAM_BLUE_COLOR, string);
}
}
}
}
return true;
}
Re: Ajuda Com /rbrall /rbqall -
tonisantolia - 21.01.2013
Use
variaveis e seja feliz
Re: Ajuda Com /rbrall /rbqall -
lucasbjs0 - 21.01.2013
Como Pode Me Dar Um Exemplo!!
Re: Ajuda Com /rbrall /rbqall -
tonisantolia - 21.01.2013
Quote:
Originally Posted by lucasbjs0
Como Pode Me Dar Um Exemplo!!
|
Sabe pelomenos o que й uma variavel? e.e
Re: Ajuda Com /rbrall /rbqall -
lucasbjs0 - 21.01.2013
um pouco, mais eu so to sem um minimo de noзгo de como se faiz por isso vim aki nee...
Re: Ajuda Com /rbrall /rbqall -
lucasbjs0 - 21.01.2013
Ajuda!!!