On Player Enter Vehicle
#4

Quote:
Originally Posted by Rksss
pawn Код:
new mycar;

//@Ongamemodeinit
mycar = CreateVehicle(..

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
 if(vehicleid == mycar)
 {
   new PlayerName[MAX_PLAYER_NAME];
   GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
   if(strcmp(PlayerName, "[LSB]Johnson", true) == 0)
   {
    SendClientMessage(playerid, COLOR_COLOR,"This is your car.");
   }
   else
   {
    SendClientMessage(playerid, COLOR_COLOR, "This car is reserved for [LSB]Johnson!");
    RemovePlayerFromVehicle(playerid);
   }
 }
 return 1;
}
Untested.
ty you for this g,

but i alredi got it from one of mi old gm's, but thankyou for your help

Johnson
Reply


Messages In This Thread
On Player Enter Vehicle - by MadnessJohnson - 08.10.2008, 17:20
Re: On Player Enter Vehicle - by Rks25 - 08.10.2008, 19:29
Re: On Player Enter Vehicle - by JoeDaDude - 08.10.2008, 21:24
Re: On Player Enter Vehicle - by MadnessJohnson - 08.10.2008, 21:54
Re: On Player Enter Vehicle - by Erkan - 08.10.2008, 22:13
Re: On Player Enter Vehicle - by MadnessJohnson - 09.10.2008, 14:38
Re: On Player Enter Vehicle - by Backwardsman97 - 10.10.2008, 04:01
Re: On Player Enter Vehicle - by mamorunl - 10.10.2008, 07:32
Re: On Player Enter Vehicle - by Cueball - 10.10.2008, 07:37
Re: On Player Enter Vehicle - by mamorunl - 10.10.2008, 11:39

Forum Jump:


Users browsing this thread: 2 Guest(s)