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