12.02.2013, 17:55
Hi i own a very popular gang war server it gets a full server daily. Now the players are very noob all they want is hydra's seasparrow's and tank's so I want somthing to block that. i Told my admins to ban every person who gets in a illegal vehicle.
Heres my code:
[b]But somehow It doesnt eject them. it just shows the message.
I really need help with this. Thank you.
Heres my code:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(vehicleid) == 520 )
{
if(GetPlayerScore(playerid) < 1000 )
{
SendClientMessage(playerid,0xFF0000FF,"You cant drive this vehicle you noob");
RemovePlayerFromVehicle( playerid );
}
}
if(GetVehicleModel(vehicleid) == 432 )
{
if(GetPlayerScore(playerid) < 1000 )
{
SendClientMessage(playerid,0xFF0000FF,"You cant drive this vehicle you noob");
RemovePlayerFromVehicle( playerid );
}
}
return 1;
}
I really need help with this. Thank you.