[HELP]I need help with some cars?
#1

Код:
	if(strcmp(cmd,"/cisti", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        new tmpcar = GetPlayerVehicleID(playerid);
			if(PlayerInfo[playerid][pJob] == 20)
			{
		    	if(IsASweeper(tmpcar))
		    	{
		    	    if(PlayerToPoint(60.0,playerid,1671.5668,-1885.0568,13.2720))
	        		{
	            		CP[playerid] = 1023;
						SetPlayerCheckpoint(playerid,1533.4948,-1672.5055,13.1080,8.0);
						SendClientMessage(playerid, COLOR_YELLOW, "Tvoja zadaca e da cistis ulici...");
	        		}
	        		else
					{
						SendClientMessage(playerid, COLOR_YELLOW, "Ne si komunalec!.");
						return 1;
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_YELLOW, "Ne si vo vozilo za perenje ulici !.");
					return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_YELLOW, "Ne si vo komunalna sluzba !");
				return 1;
			}
		}
		return 1;
and this

Код:
	if(strcmp(cmd,"/odvoz", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        new tmpcar = GetPlayerVehicleID(playerid);
			if(PlayerInfo[playerid][pJob] == 20)
			{
		    	if(IsASweeper(tmpcar))
		    	{
		    	    if(PlayerToPoint(60.0,playerid,1633.2413,-1904.9828,14.0923))
	        		{
	            		CP[playerid] = 1007;
						SetPlayerCheckpoint(playerid,1027.0767,-1042.7760,32.0495,8.0);
						SendClientMessage(playerid, COLOR_YELLOW, "Tvoja rabota e da go iscistis gjubreto...");
	        		}
	        		else
					{
						SendClientMessage(playerid, COLOR_YELLOW, "Ne si vo baza na komunalci !.");
						return 1;
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_YELLOW, "Ne si vo vozilo za cistenje !.");
					return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_YELLOW, "Ne si komunalec !");
				return 1;
			}
		}
		return 1;
	}
	if(strcmp(cmd,"/baustela",true)==0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			new tmpcar = GetPlayerVehicleID(playerid);
	    	if(PlayerInfo[playerid][pJob] == 21)
	    	{
	        	if(IsABaustela(tmpcar))
	        	{
	   				if(PlayerToPoint(90.0, playerid, -550.6525,-499.9751,26.4506))      //ovdje mozete staviti bilokoje koordinate
	   				{
                   		SetTimerEx("RandomBaustela", 5000, false, "d",playerid);
                   		SendClientMessage(playerid, COLOR_YELLOW, "Mora da cekas 5 sekundi.");
						GetPlayerName(playerid, sendername, sizeof(sendername));
				   		format(string, sizeof(string), "* %s cekas nareduvanje od centrala.", sendername);
				   		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  		           		return 1;
	   				}
	   				else
					{
						SendClientMessage(playerid, COLOR_YELLOW, "Ne si vo baza !.");
						return 1;
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_YELLOW, "Ne si vo kola !.");
					return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_YELLOW, "Nisi baustelac !");
				return 1;
			}
		}
		return 1;
	}
So where to car ID because this command fucks me i type /veh 522 0 0 for NRG he says you are not ...
and kick me from car. Please help me thanks.
Reply
#2

If the client messages were in English, it would be much easier for someone to help you. I am not sure where the message your talking about is.
Reply
#3

Quote:
Originally Posted by Chaprnks
Посмотреть сообщение
If the client messages were in English, it would be much easier for someone to help you. I am not sure where the message your talking about is.
Код:
	if(strcmp(cmd,"/odvoz", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        new tmpcar = GetPlayerVehicleID(playerid);
			if(PlayerInfo[playerid][pJob] == 20)
			{
		    	if(IsASweeper(tmpcar))
		    	{
		    	    if(PlayerToPoint(60.0,playerid,1633.2413,-1904.9828,14.0923))
	        		{
	            		CP[playerid] = 1007;
						SetPlayerCheckpoint(playerid,1027.0767,-1042.7760,32.0495,8.0);
						SendClientMessage(playerid, COLOR_YELLOW, "Your job is to clean street shit...");
	        		}
	        		else
					{
						SendClientMessage(playerid, COLOR_YELLOW, "You are not in base !.");
						return 1;
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_YELLOW, "You not driving vehicle for this job !.");
					return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_YELLOW, "You are not komunalec !");
				return 1;
			}
		}
		return 1;
	}
	if(strcmp(cmd,"/baustela",true)==0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			new tmpcar = GetPlayerVehicleID(playerid);
	    	if(PlayerInfo[playerid][pJob] == 21)
	    	{
	        	if(IsABaustela(tmpcar))
	        	{
	   				if(PlayerToPoint(90.0, playerid, -550.6525,-499.9751,26.4506))      //here add cords
	   				{
                   		SetTimerEx("RandomBaustela", 5000, false, "d",playerid);
                   		SendClientMessage(playerid, COLOR_YELLOW, "You must wait 5mins.");
						GetPlayerName(playerid, sendername, sizeof(sendername));
				   		format(string, sizeof(string), "* %s you need to wait for order.", sendername);
				   		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  		           		return 1;
	   				}
	   				else
					{
						SendClientMessage(playerid, COLOR_YELLOW, "You are not in base !.");
						return 1;
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_YELLOW, "You are not in car !.");
					return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_YELLOW, "You are not baustela. !");
				return 1;
			}
		}
		return 1;
	}
And

Код:
if(strcmp(cmd,"/cisti", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
	        new tmpcar = GetPlayerVehicleID(playerid);
			if(PlayerInfo[playerid][pJob] == 20)
			{
		    	if(IsASweeper(tmpcar))
		    	{
		    	    if(PlayerToPoint(60.0,playerid,1671.5668,-1885.0568,13.2720))
	        		{
	            		CP[playerid] = 1023;
						SetPlayerCheckpoint(playerid,1533.4948,-1672.5055,13.1080,8.0);
						SendClientMessage(playerid, COLOR_YELLOW, "Your job is to clean streets...");
	        		}
	        		else
					{
						SendClientMessage(playerid, COLOR_YELLOW, "You are not komunalec!.");
						return 1;
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_YELLOW, "You are not in the car for this job !.");
					return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_YELLOW, "You are not komunalec !");
				return 1;
			}
		}
		return 1;
Now is in english so?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)