- 0
Problema /givesalary
-
Similar Content
-
- 2 answers
- 613 views
-
Problema turf
By Soryn.,
- 3 answers
- 400 views
-
- 0 replies
- 142 views
-
- 2 replies
- 328 views
-
- 1 reply
- 202 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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;
}
Link to comment
Share on other sites
12 answers to this question
Recommended Posts