[Duvida] Como liberar /gov para outras org
#5

Tente
pawn Код:
if(strcmp(cmd, "/governo", true) == 0 || strcmp(cmd, "/gov", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] != 4 || PlayerInfo[playerid][pLeader] != 4)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um Bombeiro!");
return 1;
}
if(PlayerInfo[playerid][pRank] < 4)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк precisar ter cargo maior ou igual а 4 !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USO: (/gov)erno [texto]");
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|___________ Notнcias governamentais ___________|");
for(new luplay=0;luplay<6;luplay++){
if(strfind(result, IP[luplay], true) != -1){result = "PКGO EM FRБGRANTE!!!Jogador tentando divulgar algum IP.";}}
if(PlayerInfo[playerid][pMember] == 7)
{
format(string, sizeof(string), "Polнtico %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pMember] == 21)
{
format(string, sizeof(string), "Oficial B.O.P.E %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pMember] == 14)
{
format(string, sizeof(string), "Oficial Policia Rodoviaria %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pMember] == 3)
{
format(string, sizeof(string), "Forзas Armadas %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pMember] == 4)
{
format(string, sizeof(string), "Bombeiros %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pMember] == 1)
{
format(string, sizeof(string), "Oficial %s: %s", sendername, result);
}
SendClientMessageToAll(COLOR_DBLUE, string);
}
return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)