[Ajuda] Nгo entrar no Carro.
#1

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(newstate == PLAYER_STATE_DRIVER)
{
    	new newcar = GetPlayerVehicleID(playerid);
		TelePos[playerid][0] = 0.0;
		TelePos[playerid][1] = 0.0;
		new carid=GetVehicleModel(newcar);
		if(carid == 0 || carid == 0 || carid == 0) { }
		else
		{
			if(IsAAztecaCar(newcar))
			{
		    	if(!IsAAzteca(playerid))
		    	{
		    	    new Float:PlayerPosX,Float:PlayerPosY,Float:PlayerPosZ;
					GetPlayerPos(playerid,PlayerPosX,PlayerPosY,PlayerPosZ);
					SetPlayerPos(playerid,PlayerPosX,PlayerPosY,PlayerPosZ);
					SendClientMessage(playerid, COR_BALLAS, "Vocк nгo й um Azteca!");
				}
			}
		}
 }
coloquei isso para o Player de outra ORG nгo poder entrar nos Veiculos dos Aztecas , nгo poder nem entrar . , mais ta chamando essa public primeiro
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
Alguem da um Help ?
Reply


Messages In This Thread
Nгo entrar no Carro. - by MatheusFuria - 11.02.2013, 16:39
Re: Nгo entrar no Carro. - by mau.tito - 11.02.2013, 16:45
Re: Nгo entrar no Carro. - by MatheusFuria - 11.02.2013, 16:49
Re: Nгo entrar no Carro. - by DouglasRodrigues - 11.02.2013, 18:22
Re: Nгo entrar no Carro. - by MatheusFuria - 11.02.2013, 18:32
Re: Nгo entrar no Carro. - by MatheusFuria - 12.02.2013, 00:07

Forum Jump:


Users browsing this thread: 1 Guest(s)