I need Help
#1

Hello ,Please I need Anti DM vehicle ,mean if someone Make a DM vehicle he will be Freeze 5 Second ,I hope i will get Help from someone ,and thanks
Thanks For Read and i hope Reply
Reply
#2

what you mean with anti DM vehicle? describe a scenario.
Reply
#3

Use SetPlayerArmedWeapon to fist once they're inside vehicle.
Reply
#4

If what you mean is when player's shooting an other player in vehicle :

PHP код:
public OnPlayerShootPlayer(Shooter,Target,Float:HealthLost,Float:ArmourLost)
{
    new 
vehicleid GetPlayerVehicleID(playerid);
    if(
IsPlayerInVehicle(Target,vehicleid))
    {
        
TogglePlayerControllable(Shooter,0);
        
SetTimerEx("UnFreeze",5000,false,"i",playerid);
        return 
1;
    }
    return 
1;
}
forward UnFreeze(playerid);
public 
UnFreeze(playerid)
{
    
TogglePlayerControllable(playerid,1);
    return 
1;

That what i understood when you said "DM Vehicle".


Edit: You'll get this error "Undefined symbol OnPlayerShootPlayer", unless if you have this include : https://sampforum.blast.hk/showthread.php?pid=937824#pid937824
Reply
#5

Quote:

EDIT 2013: THIS INCLUDE IS OLD AND OUTDATED! SA-MP HAS DEVELOPED NATIVE FUNCTIONS FOR THIS.

So?? Read this killer ^^
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)