Poftim cod-ul ! :
CMD:bonus(playerid,params[], help)
{
new str[128];
if(PlayerInfo[playerid][pLevel] != 1) return SCM(playerid, -1, "Ai luat deja acest bonus");
if(IsPlayerConnected(playerid))
{
{
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
GivePlayerCash(playerid, 100000000);
PlayerInfo[playerid][pLevel] = 7;
PlayerInfo[playerid][pPremiumPoints] += 2080;
PlayerInfo[playerid][pCarLic] = 1;
PlayerInfo[playerid][pCarLicT] = 100;
Update(playerid, pCashx);
Update(playerid, pLevelx);
Update(playerid, pPremiumPointsx);
Update(playerid, pCarLic);
mysql_query(SQL,str);
ShowPlayerDialog(playerid, 3354, DIALOG_STYLE_MSGBOX, "Server Bonus", "{ffffff}Ai folosit comanda /bonus si ai primit:\n Level 7\n - 100.000.000 $\n -{ffff00} 2080 {ffffff}Puncte Premium si Licenta de Driving !","OK","");
}
}
return 1;
}
Daca folosesti cmd daca nu pui YCMD