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.
|
1. pastebin
2. you cant remove a player from a vehicle if he isn't in one.
3. You are offering scripts and yourself as a scripter but you don't know this? shame on you