14.12.2010, 21:37
Now it does the following:
it Sends Welcome to me (if I enter any vehicle)
And it doesn't do anything to others
EDIT: The case that it sends me this message with any vehicle is fixed.
I need the part which kicks others out of my vehicle (Little Alarm System)
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { new pName[MAX_PLAYER_NAME]; GetPlayerName (playerid, pName, sizeof (pName)); if (strcmp (Carlist[vehicleid][owner], pName, true) == 0) { // It is true SendClientMessage(playerid, COLOR_YELLOW, "* Welcome"); } else { // Not true. SendClientMessage(playerid, COLOR_RED, "* EJECT"); RemovePlayerFromVehicle(playerid); } return 1; }
And it doesn't do anything to others
EDIT: The case that it sends me this message with any vehicle is fixed.
I need the part which kicks others out of my vehicle (Little Alarm System)