Jump to content
  • 0

Am si eu o problema


robert

Question

4 answers to this question

Recommended Posts

Predator" post="52611" timestamp="1296494161"]

Daeste foarte usoara problema!

Deci duten GM Deschidel cu pawno din Folder si apasa CTRL+F

Si cauta asta

#include <a_samp>
#define HOLDING(%0) \
	((newkeys & (%0)) == (%0))
#define RELEASED(%0) \
	(((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))
new fire[MAX_PLAYERS],firee[MAX_PLAYERS],fireee[MAX_PLAYERS],fireeee[MAX_PLAYERS],fireeeee[MAX_PLAYERS],fireeeeee[MAX_PLAYERS],fireinfo[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
	fireinfo[playerid] = 0;
	return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    new model = GetPlayerVehicleID(playerid);
	model = GetVehicleModel(model);
    if(HOLDING(KEY_SPRINT))
	{
		if(model == 400||model == 401||model == 402||model == 404||model == 405||model == 410
		 ||model == 411||model == 412||model == 413||model == 415||model == 418||model == 419
		 ||model == 420||model == 421||model == 422||model == 426||model == 429||model == 436
		 ||model == 438||model == 439||model == 440||model == 445||model == 451||model == 458
		 ||model == 459||model == 466||model == 467||model == 470||model == 474||model == 475
		 ||model == 477||model == 478||model == 479||model == 480||model == 482||model == 489
		 ||model == 490||model == 491||model == 492||model == 494||model == 495||model == 496
		 ||model == 500||model == 502||model == 503||model == 504||model == 505||model == 506
		 ||model == 507||model == 516||model == 517||model == 518||model == 526||model == 527
		 ||model == 528||model == 529||model == 533||model == 534||model == 535||model == 536
		 ||model == 540||model == 541||model == 542||model == 543||model == 546||model == 547
		 ||model == 549||model == 550||model == 551||model == 554||model == 555||model == 558
		 ||model == 559||model == 560||model == 561||model == 562||model == 565||model == 566
		 ||model == 567||model == 568||model == 575||model == 576||model == 579||model == 580
		 ||model == 582||model == 585||model == 587||model == 589||model == 596||model == 597
		 ||model == 598||model == 599||model == 600||model == 602||model == 603||model == 604||model == 605)
		{
		    if(fireinfo[playerid] == 0)
		    {
			    fire[playerid] = CreateObject(18694,0,0,0,0,0,0);
		    	firee[playerid] = CreateObject(18694,0,0,0,0,0,0);
		    	fireee[playerid] = CreateObject(18694,0,0,0,0,0,0);
		    	fireeee[playerid] = CreateObject(18694,0,0,0,0,0,0);
			    AttachObjectToVehicle(fire[playerid], GetPlayerVehicleID(playerid), -0.8, 2.0, -2.0, 0.0, 0.0, 0.0);
			    AttachObjectToVehicle(firee[playerid], GetPlayerVehicleID(playerid), 0.8, 2.0, -2.0, 0.0, 0.0, 0.0);
			    AttachObjectToVehicle(fireee[playerid], GetPlayerVehicleID(playerid), -0.8, -2.0, -2.0, 0.0, 0.0, 0.0);
			    AttachObjectToVehicle(fireeee[playerid], GetPlayerVehicleID(playerid), 0.8, -2.0, -2.0, 0.0, 0.0, 0.0);
			    fireinfo[playerid] = 1;
			}
		}
		if(model == 465||model == 448||model == 581||model == 522||model == 461||model == 521
	 ||model == 523||model == 463||model == 586||model == 468)
		{
		    if(fireinfo[playerid] == 0)
		    {
			    fireeeee[playerid] = CreateObject(18694,0,0,0,0,0,0);
		    	fireeeeee[playerid] = CreateObject(18694,0,0,0,0,0,0);
			    AttachObjectToVehicle(fireeeee[playerid], GetPlayerVehicleID(playerid), 0.0, 1.3, -2.0, 0.0, 0.0, 0.0);
			    AttachObjectToVehicle(fireeeeee[playerid], GetPlayerVehicleID(playerid), 0.0, -1.3, -2.0, 0.0, 0.0, 0.0);
			    fireinfo[playerid] = 1;
			}
		}
	}
	else if(RELEASED(KEY_SPRINT))
	{
	    if(fireinfo[playerid] == 1)
	    {
	    	DestroyObject(fire[playerid]);
			DestroyObject(firee[playerid]);
			DestroyObject(fireee[playerid]);
			DestroyObject(fireeee[playerid]);
			DestroyObject(fireeeee[playerid]);
			DestroyObject(fireeeeee[playerid]);
			fireinfo[playerid] = 0;
		}
	}
	return 1;
}
Stergele!

Stii tu ca are astea ? Si cu CTRL+F poti cauta doar o linie ...

Problema e ceva cu AttachObjectToVehicle ... fa si tu o poza ...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.