15.08.2010, 16:17
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new PlayerName[24];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(newstate == PLAYER_STATE_DRIVER)
{
new Vehicle = GetPlayerVehicleID(playerid);
if(Vehicle == Baio || Vehicle == Baio1 || Vehicle == Baio2 || Vehicle == Baio3 || Vehicle == Baio4 || Vehicle == Baio5 || Vehicle == Baio6 || Vehicle == Baio7)
{
if(strcmp("Intsu", PlayerName, true) != 0 || strcmp("CreepyMoto", PlayerName, true) != 0) RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0x33AA33AA, "I'm sorry, but this car has been reserved for CreepyMoto / Intsu");
}
}
return 1;
}