CMD:bonus(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLevel] <= 1)
{
GivePlayerCash(playerid, 10000000);
PlayerInfo[playerid][pLevel] = 3;
PlayerInfo[playerid][pCarLic] = 1; PlayerInfo[playerid][pCarLicT] = 100; PlayerInfo[playerid][pFlyLic] = 1; PlayerInfo[playerid][pFlyLicT] = 100; PlayerInfo[playerid][pBoatLic] = 1; PlayerInfo[playerid][pBoatLicT] = 100; PlayerInfo[playerid][pGunLic] = 1; PlayerInfo[playerid][pGunLicT] = 100;
SetPlayerScore(playerid, 5);
Update(playerid, pCashx);
Update(playerid, pLevelx);
format(str,128,"UPDATE users SET `CarLic`='1',`CarLicT`='20',`FlyLic`='1',`FlyLicT`='20',`BoatLic`='1',`BoatLicT`='20',`GunLic`='1',`GunLicT`='20' WHERE `ID`='%d'",PlayerInfo[playerid][pSQLID]); mysql_query(SQL,str);
ShowPlayerDialog(playerid, 3354, DIALOG_STYLE_MSGBOX, "{ffffff}Server Bonus {ffffff}| {ffffff}Server RPG{ffffff} |", "{ffffff}Ai folosit comanda {ffffff}/bonus{d10606} si ai primit:\n {ffffff}-{ffffff} Level {ffffff}3\n -{ffffff} 10.000.000{ffffff}$\n {ffffff}\nMultumim ca ai ales serverul Server RPG","{d10606}Multumesc","");
}
else return SendClientMessage(playerid, COLOR_RED, "Nu poti folosi aceasta comanda daca ai level 3+ !");
}
return 1;
}