- 0
Ajutor scripting.
-
Similar Content
-
- 62 replies
- 5,957 views
-
- 14 replies
- 1,792 views
-
- 4 replies
- 156 views
-
- 5 replies
- 353 views
-
- 1 reply
- 229 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
KiNGzOR
Salut,as dorii si eu sa ma ajutati sa imi spuneti la comanda asta cum as putea sa pun sa nu conteze levelul,ci sa poata sa o foloseasca doar odata,si odata ce o folosesc sa nu mai poata sa le scrie asa "Ai luat deja cadoul de Mos Craciun",si odata ce foloseste comanda sa se dea pe comanda /o adica anunt pentru tot serverul "%s a luat cadoul de Mos Craciun" %s fiind inlocuit cu numele jucatorului.
Comanda:
CMD:moscraciun(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][pScore] <= 4)
{
GiveMoney(playerid, 30000000);
PlayerInfo[playerid][pScore] += 5;
PlayerInfo[playerid][pDiamonds] = 100;
SetPlayerScore(playerid, PlayerInfo[playerid][pScore]);
SendClientMessage(playerid, COLOR_WHITE, "--------------------------[Mos Craciun]---------------------------------");
SendClientMessage(playerid, COLOR_RED, "Ai primit $30,000,000 cadou de la Mos Craciun!");
SendClientMessage(playerid, COLOR_BLUE, "Ai primit 5 level up-uri de la Mos Craciun!");
SendClientMessage(playerid, COLOR_YELLOW, "Ai primit 100 diamonds cadou de la Mos Craciun!");
SendClientMessage(playerid, COLOR_WHITE, "--------------------------[Mos Craciun]---------------------------------");
}
else return SendClientMessage(playerid, COLOR_LIGHTRED, "Ai luat deja cadoul de Mos Craciun !");
}
}
return 1;
}
Link to comment
Share on other sites
6 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.