Quote:
Originally Posted by Calg00ne
Always remember to use casing properly, there's no capital 'L' in SendClientMessage.
Easier to use code:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(GetVehicleModel(vehicleid) == 432 && !IsPlayerAdmin(playerid)) { SetPlayerHealth(playerid, 0); GameTextForPlayer(playerid, "~r~Dont touch my toys", 5000, 5); } return 0; }
You didn't need to create a variable to store the vehicle model, you can just do this, and you didn't need to send a message saying "Admin rights confirmed."
|
Was a typo, and didn't notice it: my bad. Also, i just showed it how it should work. He did it like that, so i didnt change anything