22.01.2013, 04:32
Aew Galera Ja Que Niguem me Ajuda Vo Repetir Meu Problema!! Tipo Quando Um Lнder 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"
Comandos
/rbqall
/rbrall
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"
Comandos
/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;
}
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;
}