restricted vehicles
#1

how can i do it? there are code for few faggios
i want to do only levels 1-3 can enter... to get level in my script is: DOF2_GetInt(pFile(playerid),"Level")
Reply
#2

Maybe try more specific and tell us more, what vehicles, where vehicles will be located etc... In GamodeInit you need CreateVehicle and to top need add variable like: admincars. When try learn to use OnPlayerStateChange function.
Reply
#3

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if(GetVehicleModel(vehicleid) == 462 && DOF2_GetInt(pFile(playerid),"Level") > 3)
 	{
		SendClientMessage(playerid, -1, "This vehicle is for players below level 4!");
    	RemovePlayerFromVehicle(playerid);
		new Float:slx, Float:sly, Float:slz;
		GetPlayerPos(playerid, slx, sly, slz);
		SetPlayerPos(playerid, slx, sly, slz);
     	return 1;
	}
}
Reply
#4

Quote:
Originally Posted by MacT
Посмотреть сообщение
Maybe try more specific and tell us more, what vehicles, where vehicles will be located etc... In GamodeInit you need CreateVehicle and to top need add variable like: admincars. When try learn to use OnPlayerStateChange function.
on PlayerKeyStateChange...

if vehicleid == NoobVehicle and player level >3 RemovePlayerFromVehicle

please help me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)