new BonusActiv = 0;
Comanda activatebonus:
CMD:activatebonus(playerid, params[]) //-> Cu aceasta comanda activezi bonus-ul [/bonus]
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first. .");
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 4)
{
if(BonusActiv == 0)
{
BonusActiv = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai activat comanda /bonus!");
}
else
{
BonusActiv = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai dezactivat comanda /bonus!");
}
}
else
{
SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
}
}
return 1;
}
Comanda bonus:
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] <= 2)
{
GivePlayerCash(playerid, 69000000); // -> Cash $
PlayerInfo[playerid][pLevel] = 69; // -> Level-ul
PlayerInfo[playerid][pExp] += 69; // -> RespectPoints
Update(playerid, pLevelx);
Update(playerid, pCashx);
Update(playerid, pExp);
SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai primit $69.000.000, 69 rp-uri si level 69 de bun venit!");
}
else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda daca ai level 3+ !");
}
}
return 1;
}new BonusActiv = 0;
Comanda activatebonus:
CMD:activatebonus(playerid, params[]) //-> Cu aceasta comanda activezi bonus-ul [/bonus]
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first. .");
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 4)
{
if(BonusActiv == 0)
{
BonusActiv = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai activat comanda /bonus!");
}
else
{
BonusActiv = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai dezactivat comanda /bonus!");
}
}
else
{
SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
}
}
return 1;
}