Jump to content

LucaAdv.

Membru
  • Posts

    201
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by LucaAdv.

  1. 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

    • Like 1
  2. Daca ai functia // admin

    [pAdmin] >= 0 (inseamna ca orice player poate sa-si deie admin.)
    Ca sa nu mai ai aceasta problema pui : [pAdmin] >= 6 (sau ce grad doresti, inloc de 6 poti sa pui 8 ceea ce arata ca doar un admin de lvl 8 are voie de a folosii aceea comanda. // Faci asta si la /sethelper .
     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.