12.08.2013, 05:42
Hey guys, i need help here...
So the points, i want just only soldier class who will able to drive rhino.
So here is my codes:
Below are my codes.
When i tested it, and tried to get in to rhino, the player is keeping stay inside the rhino, and doesnt send any error message?
Anyone can help me please?
So the points, i want just only soldier class who will able to drive rhino.
So here is my codes:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(vehicleid) == 432 && gPlayerClass[playerid] == SNIPER && gPlayerClass[playerid] == PILOT)
{
SendClientMessage(playerid, COLOR_BRIGHTRED, "You need to be soldier to able drive rhino tank");
RemovePlayerFromVehicle(playerid);
}
return 1;
}
When i tested it, and tried to get in to rhino, the player is keeping stay inside the rhino, and doesnt send any error message?
Anyone can help me please?