28.05.2010, 10:30
Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(IsPlayerInAnyVehicle(playerid)) { if(PlayerInfo[playerid][pMootor] == 0) { if(newkeys == KEY_JUMP) { PlayerInfo[playerid][pMootor] = 2; SetTimerEx("KaivitaMootor", 3000, 0, "i", playerid); new string2[256], pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); format(string2, sizeof(string2), "* %s ьritab mootorit kдivitada ", pname); SendLocalMessage(playerid, LILLA, 7, string2); } } if(newkeys == KEY_SECONDARY_ATTACK) { RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); } }
btw im using godfather car system on blank gm