i need car only rcon or admin can use
#9

Add this at the top of the script:
pawn Код:
new AdminCar;
Add this under OnGameModeInit / OnFilterScriptInit:
pawn Код:
AdminCar = AddStaticVehicleEx(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:angle, color1, color2, respawn_delay);
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if (vehicleid == AdminCar && !ispassenger)
  {
   if(IsPlayerAdmin(playerid))
   {
      SendClientMessage(playerid,COLOR_WHITE, "Drive safe & set a good example!");
   }
else
{
new Float:Xx,Float:Yy,Float:Zz,Float:Aa;
     GetPlayerPos(playerid,Xx,Yy,Zz);
     GetPlayerFacingAngle(playerid,Aa);
     SetPlayerPos(playerid,Xx,Yy,Zz);
     SetPlayerFacingAngle(playerid,Aa);
     SendClientMessage(playerid,COLOR_WHITE, "You Can't drive this Vehicle!");

    }
Reply


Messages In This Thread
i need car only rcon or admin can use - by matdav - 29.11.2009, 16:41
Re: i need car only rcon or admin can use - by jonybomb - 29.11.2009, 16:44
Re: i need car only rcon or admin can use - by matdav - 29.11.2009, 16:47
Re: i need car only rcon or admin can use - by jonybomb - 29.11.2009, 16:47
Re: i need car only rcon or admin can use - by matdav - 29.11.2009, 16:51
Re: i need car only rcon or admin can use - by jonybomb - 29.11.2009, 16:54
Re: i need car only rcon or admin can use - by matdav - 29.11.2009, 16:56
Re: i need car only rcon or admin can use - by Ironboy500 - 29.11.2009, 17:56
Re: i need car only rcon or admin can use - by [NYRP]Mike. - 29.11.2009, 18:47
Re: i need car only rcon or admin can use - by matdav - 30.11.2009, 20:01

Forum Jump:


Users browsing this thread: 1 Guest(s)