21.09.2018, 10:03
hi guys, i have used all sorts of ways from OnPlayerKeyStateChange and OnPlayerStateChange to implement the Drive By system but it does not work, and this is my old gamemode Drive By System. If anyone knows how to do it with other weapons please help me.
Code:
Code:
Quote:
task ServerHeartbeatTwo[1000]() { foreach(new i: Player) { if(IsPlayerInAnyVehicle(i)) { if(GetPlayerState(i) == PLAYER_STATE_DRIVER) SetPlayerArmedWeapon(i, 0); else if(PlayerInfo[i][pGuns][4] == 0) SetPlayerArmedWeapon(i, 0); else SetPlayerArmedWeapon(i, 29); } |