Adminvehicle isn't works
#1

Код:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
               new veh = GetPlayerVehicleID(playerid);
		if(veh == 520 || veh == 425 || veh == 577 || veh == 417 || veh == 592)
		{
		    if(Adminlevel[playerid] <= 3)
		    {
				RemovePlayerFromVehicle(playerid);
				GameTextForPlayer(playerid,"~r~Admin Vehicle",3000,3);
				SendClientMessage(playerid,COLOR_RED,"Sorry! But this Vehicle is only for Admins.");
		     }
		}
		if(veh == 579)
		{
		    if(!strcmp(Spielername(playerid),"Name",true))
		    {
				RemovePlayerFromVehicle(playerid);
				GameTextForPlayer(playerid,"~r~Name's Vehicle",3000,3);
				SendClientMessage(playerid,COLOR_RED,"Sorry! But this Vehicle is only for Name.");
		     }
		}
      }
      return 1;
}
Reply
#2

try GetVehicleModel not id...
Reply
#3

lol my mini typos thanks ~closed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)