Ajutor - /givegun & evade system
#1

Salutare,

* Am facut un sistem prin care atunci cand esti in jail ( celula ) te poti duce in curtea inchisorii ( YARD ). Yard-ul l-am lucrat in MTA, insa am vazut pe un server un sistem foarte frumos de evade: sa zicem ca vine un elicopter sa ma scoata din inchisoare, eu ma urc in el, iar jucatorul ma duce departe de Yard unde ma lasa la sol si imi scrie: " Ai evadat cu succes ", iar daca imi dau respawn nu ma mai da la jail. Sper ca ati inteles la ce ma refer, daca cineva stie de unde se poate face rost de acest sistem sau il are, va rog reply.

* De foarte mult timp caut comanda /givegun, cine o are, va rog reply.
Multumesc !
Reply
#2

Pentru comanda givegun.
Cauta un server oarecare sa fie RP sau GF si gasesti comanda in el.
Nu te duce capul?
Succes
Reply
#3

Nu ati obosit sa copiati de pe alte servere ?
Reply
#4

Daca nu stie macar atata sa faca, si daca tot te dai asa interesant fai u o comanda , dar nu o copia din gm tau
Reply
#5

@IuLyAnBoSs daca GM-ul lui DokerJR e facut de el de ce nu ar copia comanda din GM, doar e facuta tot de el
Reply
#6

@ Iulyanboss - Din tot ce am cautat eu, nu am gasit nimic bun, si daca am gasit ceva era buguit.
@ DokerJr - Oh, m-am saturat de toti astia ca voi..
@ Spookie98 - Ce nu face omu' pentru +1.
Reply
#7

@ Addons tu vorbesti de +1 ? Eu discutam despre subiect, despre comanda, nu vad unde am gresit, dar la tine nu vad partea care tine de subiect .... Shhhh.
Reply
#8

Code:
//----------------------------------[GiveGun]------------------------------------------------
	if(strcmp(cmd, "/givegun", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /givegun [playerid/PartOfName] [weaponid(eg. 46 = Parachute)] [ammo]");
				return 1;
			}
			new playa;
			new gun;
			new ammo;
			playa = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			gun = strval(tmp);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /givegun [playerid/PartOfName] [weaponid] [ammo]");
				SendClientMessage(playerid, COLOR_GRAD4, "3(Club) 4(knife) 5(bat) 6(Shovel) 7(Cue) 8(Katana) 10-13(Dildo) 14(Flowers) 16(Grenades) 18(Molotovs) 22(Pistol) 23(SPistol)");
				SendClientMessage(playerid, COLOR_GRAD3, "24(Eagle) 25(shotgun) 29(MP5) 30(AK47) 31(M4) 33(Rifle) 34(Sniper) 37(Flamethrower) 41(spray) 42(exting) 43(Camera) 46(Parachute)");
				return 1;
			}
			if(gun < 1||gun > 46||gun==27||gun==1||gun==2||gun==9||gun==19||gun==20||gun==21||gun==36||gun==39||gun==40||gun==44||gun==45)
			{ SendClientMessage(playerid, COLOR_GRAD1, "   wrong WeaponID!"); return 1; }
			tmp = strtok(cmdtext, idx);
			ammo = strval(tmp);
			if(ammo <1||ammo > 999)
			{ SendClientMessage(playerid, COLOR_GRAD1, "   dont go below 1 or above 999 bullets!"); return 1; }
			if (PlayerInfo[playerid][pAdmin] >= 1337)
			{
			    if(IsPlayerConnected(playa))
			    {
			        if(playa != INVALID_PLAYER_ID)
			        {
						GivePlayerWeapon(playa, gun, ammo);
						GetPlayerName(playa, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, 256, "AdmWarning: Admin %s has given %s gun id %d.", giveplayer,sendername,gun);
						ABroadCast(COLOR_YELLOW,string,1);
						WarnLog(string);

					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
			}
		}
		return 1;
	}
Reply
#9

@ wikexd - Multumesc frumos, am rezolvat cu /givegun.
P.S: Ti-am dat rep.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)