11.03.2011, 14:27
Quote:
Hello, I try to make a script where the player will be ejected from an hunter if he wasn't in the army group (lieutenant) that I previously set.
pawn Код:
![]() Sorry 4 my bad English |
1) Use ClearAnimations(playerid); It works fine.
2) Brackets
pawn Код:
else SendClientMessage(playerid,COLOR_RED,"You Are Not a lieutenant");
GetPlayerVehicleID(playerid); //problem here
RemovePlayerFromVehicle(playerid); //problem here
else: Send the message
In every case: Get the vehicle and remove him.
The correct thing to do is:
else: Send the message, get the vehicle and remove the player.
INFO: ClearAnimation means that the player can't perform the Entering-vehicle animation
USE:
pawn Код:
else { SendClientMessage(playerid,COLOR_RED,"You Are Not a lieutenant");
GetPlayerVehicleID(playerid); //problem here
ClearAnimations(playerid); //problem here
}