Jump to content
  • 0

Cmds For trucking mode


TraFycanTu

Question

Salut as dori si eu un script care sa contina urmatoarele comenzi :

/giveallgun ID arma sa dea la toti playerii arma respectiva

/Armourall (sa dea armura la toti playerii)

/getall (sa aduca toti jucatorii la mine)

/freezeall (freeze pentru toti)

/unfreezeall (unfreeze pentru toti)

/muteall (mute pentru toti)

/unmuteall (unmute pentru toti)

/Cadou (cand folosesc aceasta comanda sa primeasca toti playerii un cadou gen 1.000.000 $$ si 5 score )

 

ma poate ajuta cineva ? va rog mult :(

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
On 4/21/2019 at 4:56 PM, TraFycanTu said:

Salut as dori si eu un script care sa contina urmatoarele comenzi :

/giveallgun ID arma sa dea la toti playerii arma respectiva

/Armourall (sa dea armura la toti playerii)

/getall (sa aduca toti jucatorii la mine)

/freezeall (freeze pentru toti)

/unfreezeall (unfreeze pentru toti)

/muteall (mute pentru toti)

/unmuteall (unmute pentru toti)

/Cadou (cand folosesc aceasta comanda sa primeasca toti playerii un cadou gen 1.000.000 $$ si 5 score )

 

ma poate ajuta cineva ? va rog mult :(

 

Salut scuze de deranj. Comenziile le poti face mai simplu pe un Dialog. Iar la "comanda" /cadou, nu inteleg cum de nici aia nu sti sa o faci. Lasa-mi un mesaj in privat si te ajut daca ai nevoie de acele comenzi. 

Uite iti fac eu comanda cu, /cadou. Restul te ajut la tine pe gm daca vrei, ca am nevoie de definitii si restul.

Iti fac comanda aici, de adaugat in gm te descurci si singur.

new CadouActivat= 0;

Apoi facem comanda pentru a activa acel cadou.

CMD:activeazacadou(playerid, params[])
{
	if(IsPlayerConnected(playerid)){
 	    if (PlayerInfo[playerid][pAdmin] == 6) // Adminul care poate folosi aceasta comanda este egal cu 6.
		{
		    if(CadouActiv == 0){
 	    	    CadouActiv = 1;
 	    	    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai activat comanda /cadou!");
			}
			else{
			    CadouActiv = 0;
			    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Ai dezactivat comanda /cadou!");
			}
		}
		else{
			SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
		}
	}
	return 1;
}

Iar acum sa facem comanda pentru playeri.

CMD:cadou(playerid, params[])
{
	if(IsPlayerConnected(playerid)){
 	    if(CadouActiv > 0){
 	    	if(PlayerInfo[playerid][pLevel] <= 2){ //Daca playerul are level mai mare decat Level 2, nu mai poate primi acel cadou
 	        	GivePlayerCash(playerid, 1000000); //1.000.000$
 	        	PlayerInfo[playerid][pPremiumPoints] += 30; //30 Puncte premium, sau daca ai Coroane modifici din (pPremiumPoints) in functia pe care o folosesti tu.
 	        	PlayerInfo[playerid][pLevel] = 3;//Level 3, asta este pentru playerii care intra pe server, ca sa nu poata refolosi comanda. Iar daca au un level mai mare decat level 2 nu mai pot primi acest bonus sau cadou cum vrei tu sa il numesti.
 	        	Update(playerid, pLevelx); // Update pentru level
 	        	Update(playerid, pCashx); //Update pentru Bani
 	        	Update(playerid, pPremiumPointsx); //Update pentru Punctele premium, daca ai altfel de functie inlocuieste cu functia ta (pPremiumPointsx) cu functia ta. 
 	        	SetPlayerScore(playerid, PlayerInfo[playerid][pLevel]);
 	        	ShowPlayerDialog(playerid, 3354, DIALOG_STYLE_MSGBOX, "{F0965D}Cadou Server", "{F0965D}Ai folosit comanda {F0965D}/cadou{F0965D} si ai primit:\n {00FFFF}-{ffffff} Level {00FFFF}3\n -{ffffff} 1.000.000{33cc33}$\n {00FFFF}-{ffffff} 30 Premium {ffff00}Points","{8444F2}Multumesc","");
			}
			else return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda deoarece level-ul tau este mai mare decat 3!");
		}
	}
	return 1;
}

Sper ca ti-am fost de folos cu aceasta comanda.

Edited by razvanduciuc

Ai nevoie de ajutor in scripting si nu ai bani? Te pot ajuta cu mare drag. Dar asta nu inseamna sa iti lucrez un Sistem de joc complet, daca ai nevoie de ajutor ma poti contacta pe Discord.ezgif-2-3a38433e2465.gif.9283810e304f5e405309769455e5e14b.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.