#3

Код:
#include <foreach> //at top if u don't have
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(!ispassenger)
    {
		    foreach(Player,i)
		    {
		       if( i != playerid && GetPlayerVehicleID(i) == vehicleid && GetPlayerState(i) == PLAYER_STATE_DRIVER && PlayerWithJob[i])
		       {

	new Float:x, Float:y, Float:z;
	GetPlayerPos(playerid, x , y , z);
	SetPlayerPos(playerid, x , y , z + 1);
						break;
		       }
		    }
	}
	return 1;
}
Hope it help you try it and if not work pm me
Reply


Messages In This Thread
Anti - by Ugaustin - 12.06.2016, 12:31
Re: Anti - by Xdrime - 12.06.2016, 12:41
Re: Anti - by MBilal - 12.06.2016, 12:42
Re: Anti - by Ugaustin - 12.06.2016, 13:27
Re: Anti - by MBilal - 12.06.2016, 13:37
Re: Anti - by Ugaustin - 12.06.2016, 16:19
Re: Anti - by Ugaustin - 12.06.2016, 18:43
Re: Anti - by Ugaustin - 13.06.2016, 11:18
Re: Anti - by Sjn - 13.06.2016, 12:08
Re: Anti - by cuzido - 13.06.2016, 12:09

Forum Jump:


Users browsing this thread: 1 Guest(s)