Help Me With RemovePlayerFormVehicle rep+
#1

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  new vehid = vehicleid;
  if(vehid == 425 )//hunter
   {
    if(GetPlayerScore(playerid) < 1500) return BisasaJe(playerid,"You Must Be A General To Drive This Vehicle !");
   }
   if(vehid == 520 )//Hydra
   {
    if(GetPlayerScore(playerid) < 1000) return BisasaJe(playerid,"You Must Be A Major To Drive This Vehicle !");
   }
    if(vehid == 432 )//Rhino
   {
    if(GetPlayerScore(playerid) < 800) return BisasaJe(playerid,"You Must Be A Pilot To Drive This Vehicle !");
   }
   if(vehid == 447 )//Seasparrow
   {
    if(GetPlayerScore(playerid) < 500) return BisasaJe(playerid,"You Must Be A Sergeant To Drive This Vehicle !");
   }
   if(vehid == 476 )//Rustler
   {
    if(GetPlayerScore(playerid) < 200) return BisasaJe(playerid,"You Must Be A Corporal To Drive This Vehicle !");
   }
  return 1;
}


stock BisasaJe(playerid,text[])
{
 RemovePlayerFromVehicle(playerid);
 new Float:x,Float:y,Float:z;
 GetPlayerPos(playerid,x,y,z);
 SendClientMessage(playerid,-1,text);
 return 1;
}
i have 0 score, after i get in Rhino,Hydra,Seasparrow, nothing working !!! Message also not showed , please help

rep +;
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)