- 0
Problema comanda /BONUS
-
Similar Content
-
- 3 replies
- 231 views
-
- 4 answers
- 569 views
-
- 10 replies
- 683 views
-
Comanda /spec
By VAurel,
- 4 answers
- 188 views
-
- 3 replies
- 192 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
OldeR
CMD:bonus(playerid, params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
if(IsPlayerConnected(playerid))
{
if(BonusActiv > 0)
{
if(PlayerInfo[playerid][pLevel] <= 1)
{
GivePlayerCash(playerid, 35000000);
PlayerInfo[playerid][pLevel] = 5;
Update(playerid, pLevelx);
Update(playerid, pCashx);
SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
SendClientMessage(playerid, -1, "{00CC33}SERVER: Ai primit $35,000,000 si level 5 de bun venit,bafta la joc!");
}
else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca ai level 5+ !");
}
}
return 1;
}
VREAU SA PUN SI PP CUM FAC ASTA ? ADICA SA DEA LEVEL , BANI SI PP
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.