help me, about Drive By system. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help me, about Drive By system. (
/showthread.php?tid=659043)
help me, about Drive By system. -
linhpro200294 - 21.09.2018
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:
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);
}
|