27.06.2012, 04:58
Well, I want the player to be removed from the RC Baron if he/she press the LCTRL key (fires a minigun), but it doesn't works. Can someone please help me out?
pawn Код:
if(PRESSED(KEY_ACTION))
{
if(IsPlayerInAnyVehicle(playerid))
{
if(GetVehicleModel(GetPlayerVehicleID(playerid) == 464))
{
SetPlayerPos(playerid, RCPos[playerid][0], RCPos[playerid][1], RCPos[playerid][2]);
return SendClientMessage(playerid, COLOR_ORANGE, "[WARNING:] RC Baron's minigun is disabled, don't use it.");
}
}
}