18.03.2011, 19:17
Hello all, i made a small script to remove players from Admin's vehicles but it doesn't work -_-
Can you tell me what is the problem please ?
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if (IsPlayerInVehicle(playerid, 3))
{
if (IsPlayerAdmin(playerid), = 0))
{
SendClientMessage(playerid, COLOR_RED, "This vehicle is an Admin's vehicle you can't drive it");
RemovePlayerFromVehicle(playerid);
}
}
Can you tell me what is the problem please ?
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if (IsPlayerInVehicle(playerid, 3))
{
if (IsPlayerAdmin(playerid), = 0))
{
SendClientMessage(playerid, COLOR_RED, "This vehicle is an Admin's vehicle you can't drive it");
RemovePlayerFromVehicle(playerid);
}
}