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;
}
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;
}
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now