Jump to content
  • 0

Bug job turcker


aNNt

Question

Buna ziua,cand scriu /transport ma urca in tir ma duc la ck-ul pus dar nu-mi da remorca,

CMD:transport(playerid, params[])
{
	if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
    if(IsPlayerConnected(playerid))
	{
		if(PlayerInfo[playerid][pJob] != 14) return SCM(playerid,COLOR_DS,"{FFF8C6}Nu esti Camiongiu.");
		if(!IsPlayerInRangeOfPoint(playerid, 7.0, -132.5928,-1129.1952,3.0709))  return SCM(playerid,COLOR_DS, "Nu esti la locul unde poti incepe munca.");
		new level = PlayerInfo[playerid][pCamiongiuSkill];
		if(level >= 0 && level <= 50)
		{
			if(CamiongiuC[playerid] == 0)	
			{
				carCamiongiu[playerid] = CreateVehicle(403,-145.2144,-1097.1489,6.2824,256.5808,1,1,-1);
				PutPlayerInVehicle(playerid,carCamiongiu[playerid],0);
				new engine, lights, alarm, doors, bonnet, boot, objective;
				GetVehicleParamsEx(carCamiongiu[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
				SetVehicleParamsEx(carCamiongiu[playerid],engine,lights,alarm,1,bonnet,boot,objective);
				SendClientMessage(playerid, COLOR_LIGHTBLUE, "INFO: Dute si incarca marfa.");
				SetPlayerCheckpoint(playerid, -55.9119,-1128.1163,1.0781, 4.0);
				CamiongiuC[playerid] = 1;	
				MasinaCamiongiu[playerid] = 1;
				new camion = GetPlayerVehicleID(playerid);
				Gas[camion] += 10000;
			}
		}
		else if(level >= 51 && level <= 100)
		{
			if(CamiongiuC[playerid] == 0)	
			{
				carCamiongiu[playerid] = CreateVehicle(403,-154.8341,-1118.1255,5.9570,275.7871,1,1,-1);
				PutPlayerInVehicle(playerid,carCamiongiu[playerid],0);
				new engine, lights, alarm, doors, bonnet, boot, objective;
				GetVehicleParamsEx(carCamiongiu[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
				SetVehicleParamsEx(carCamiongiu[playerid],engine,lights,alarm,1,bonnet,boot,objective);
				SendClientMessage(playerid, COLOR_LIGHTBLUE, "INFO: Dute si incarca marfa.");
				SetPlayerCheckpoint(playerid, -55.9119,-1128.1163,1.0781, 4.0);
				CamiongiuC[playerid] = 1;	
				MasinaCamiongiu[playerid] = 1;
				new camion = GetPlayerVehicleID(playerid);
				Gas[camion] += 10000;
			}
		}
		else if(level >= 101 && level <= 200)
		{
			if(CamiongiuC[playerid] == 0)	
			{
				carCamiongiu[playerid] = CreateVehicle(514,-154.8341,-1118.1255,5.9570,275.7871,1,1,-1);
				PutPlayerInVehicle(playerid,carCamiongiu[playerid],0);
				new engine, lights, alarm, doors, bonnet, boot, objective;
				GetVehicleParamsEx(carCamiongiu[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
				SetVehicleParamsEx(carCamiongiu[playerid],engine,lights,alarm,1,bonnet,boot,objective);
				SendClientMessage(playerid, COLOR_LIGHTBLUE, "INFO: Dute si incarca marfa.");
				SetPlayerCheckpoint(playerid, -55.9119,-1128.1163,1.0781, 4.0);
				CamiongiuC[playerid] = 1;	
				MasinaCamiongiu[playerid] = 1;

				new camion = GetPlayerVehicleID(playerid);
				Gas[camion] += 10000;
			}
		}		
		else if(level >= 201 && level <= 400)
		{
			if(CamiongiuC[playerid] == 0)	
			{
				carCamiongiu[playerid] = CreateVehicle(514,-154.8341,-1118.1255,5.9570,275.7871,1,1,-1);
				PutPlayerInVehicle(playerid,carCamiongiu[playerid],0);
				
				new engine, lights, alarm, doors, bonnet, boot, objective;
				GetVehicleParamsEx(carCamiongiu[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
				SetVehicleParamsEx(carCamiongiu[playerid],engine,lights,alarm,1,bonnet,boot,objective);
				SendClientMessage(playerid, COLOR_LIGHTBLUE, "INFO: Dute si incarca marfa.");
				SetPlayerCheckpoint(playerid, -55.9119,-1128.1163,1.0781, 4.0);
				CamiongiuC[playerid] = 1;	
				MasinaCamiongiu[playerid] = 1;

				new camion = GetPlayerVehicleID(playerid);
				Gas[camion] += 10000;
			}
		}
		else if(level >= 401)
		{
			if(CamiongiuC[playerid] == 0)	
			{
				carCamiongiu[playerid] = CreateVehicle(515,-154.8341,-1118.1255,5.9570,275.7871,1,1,-1);
				PutPlayerInVehicle(playerid,carCamiongiu[playerid],0);

				new engine, lights, alarm, doors, bonnet, boot, objective;
				GetVehicleParamsEx(carCamiongiu[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
				SetVehicleParamsEx(carCamiongiu[playerid],engine,lights,alarm,1,bonnet,boot,objective);
				SendClientMessage(playerid, COLOR_LIGHTBLUE, "INFO: Dute si incarca marfa.");
				SetPlayerCheckpoint(playerid, -55.9119,-1128.1163,1.0781, 4.0);
				CamiongiuC[playerid] = 1;	
				MasinaCamiongiu[playerid] = 1;

				new camion = GetPlayerVehicleID(playerid);
				Gas[camion] += 10000;			
			}
		}
	}
	return 1;
}

Daca imi puteti seta voi sa-mi puna si remorca cand scrie 

Ck-pul este pus mai in fata si daca se poate cand intru in el sa-mi ataseze automat o remorca.

INFO: Dute si incarca marfa 
Edited by aNNt
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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.