Anti DDB only - 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: Anti DDB only (
/showthread.php?tid=471755)
Anti DDB only -
Superhot - 25.10.2013
Код:
//==============================================================================
public OnPlayerStateChange(playerid, newstate, oldstate) {
switch(newstate) {
case PLAYER_STATE_ONFOOT: {
switch(oldstate) {
case PLAYER_STATE_DRIVER: OnPlayerExitVehicle(playerid,255);
case PLAYER_STATE_PASSENGER: OnPlayerExitVehicle(playerid,255);
}
}
}
if(newstate == PLAYER_STATE_DRIVER)
{
SetPlayerArmedWeapon(playerid, 0);
}
return 1;
}
#endif
this is for passenger + driver, how to make it driver only?
Re: Anti DDB only -
iJumbo - 25.10.2013
Remove the passenger code no?
Re: Anti DDB only -
iZN - 25.10.2013
Also please use [pawn] [/pawn] for PAWN codes.
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate) {
switch(newstate) {
case PLAYER_STATE_ONFOOT: {
case PLAYER_STATE_DRIVER: OnPlayerExitVehicle(playerid,255);
}
}
}
if(newstate == PLAYER_STATE_DRIVER)
{
SetPlayerArmedWeapon(playerid, 0);
}
return 1;
}
#endif
Re: Anti DDB only -
Superhot - 25.10.2013
fixed, it was somewhere in the script i couldn't find.