Problem add cars to server
#6

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4)
	{
		if (IsNgCar(vehicleid) && !ispassenger)
		{
		    if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3) {}
		    else {
				//WantedPoints[playerid]+=2;
				//SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");
				new Float:cx, Float:cy, Float:cz;
				GetPlayerPos(playerid, cx, cy, cz);
				SetPlayerPos(playerid, cx,  cy, cz);
			}
		}
		if (IsAnAmbulance(vehicleid) && !ispassenger)
		{
		    if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { }
		    else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Stealing An Ambulance"); }
		}
		if (IsATank(vehicleid) && !ispassenger)
		{
			if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==3) {}
		    else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Stealing A Tank"); SendClientMessage(playerid, COLOR_GREY,"You don't know how to drive it yet."); }
		}
		if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1)
		{
		    if(PlayerInfo[playerid][pAdmin] >= 5 && AdminDuty[playerid] == 1) { }
		    else
		    {
		    	new Float:cx, Float:cy, Float:cz;
		    	GetPlayerPos(playerid, cx, cy, cz);
		    	SetPlayerPos(playerid, cx, cy, cz);
			}
		}
	}
	return 1;
Reply


Messages In This Thread
Problem add cars to server - by l1lwayn3 - 05.08.2013, 15:02
Re: Problem add cars to server - by Chrisis - 05.08.2013, 15:50
Re: Problem add cars to server - by l1lwayn3 - 05.08.2013, 15:53
Re: Problem add cars to server - by Kudoz - 05.08.2013, 16:04
Re: Problem add cars to server - by Konstantinos - 05.08.2013, 16:07
Re: Problem add cars to server - by l1lwayn3 - 05.08.2013, 16:11
Re: Problem add cars to server - by Luis- - 05.08.2013, 16:14
Re: Problem add cars to server - by l1lwayn3 - 05.08.2013, 16:50

Forum Jump:


Users browsing this thread: 1 Guest(s)