Posts: 4
Threads: 2
Joined: Feb 2015
Reputation:
0
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
Posts: 198
Threads: 3
Joined: Nov 2008
Reputation:
0
what you mean with anti DM vehicle? describe a scenario.
Posts: 561
Threads: 27
Joined: Sep 2012
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