- 0
Problema /givesalary
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
BaD_bOy_MD
Mesajele vin dar banii nu ajutor prima data ma intilnesc cu asa problema
if(strcmp(cmd, "/givesalary", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 4) return SCM(playerid, COLOR_WHITE, "Nu ai acces!");
SendClientMessageToAll(0x046C8FFF , "(AdmBot): In acest moment, salariile au fost acordate celor care fac parte dintr-o factiune.");
new salar[MAX_PLAYERS];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[playerid][pMember] >= 1 || PlayerInfo[playerid][pLeader] >= 1 && PlayerInfo[playerid][pRank] >= 1)
{
salar = PlayerInfo[pRank] * 100000;
format(string, sizeof(string), "Salariul a sosit! ai primit %s Lei", FormatNumber(salar));
SCM(i, COLOR_MONEY, string);
}
}
}
}
return 1;
}
12 answers to this question
Recommended Posts