26.04.2017, 13:00
Update 26 April, 2017
- Fixed damage giving to issuer instead of player.
- Fixed anti-fake kill.
@Yashas: Here, test this script with a friend (once with lagcomp included and one without) and you'll see the difference)
What we basically tested is running around and meleeing. Secondly one player run sprint around and one shoots with M4. See the some bullets not being registered or the bell sound would not ring.
- Fixed damage giving to issuer instead of player.
- Fixed anti-fake kill.
@Yashas: Here, test this script with a friend (once with lagcomp included and one without) and you'll see the difference)
What we basically tested is running around and meleeing. Secondly one player run sprint around and one shoots with M4. See the some bullets not being registered or the bell sound would not ring.
PHP Code:
main()
{
}
public OnPlayerRequestClass(playerid, classid)
{
return SetTimerEx("OnPlayerEnterClassSelection", 150, false, "i", playerid);
}
forward OnPlayerEnterClassSelection(playerid);
public OnPlayerEnterClassSelection(playerid)
{
return SpawnPlayer(playerid);
}
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
{
PlayerPlaySound(issuerid, 6401, 0.0, 0.0, 0.0);
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, 1642.1957, -2334.4849, 13.5469);
GivePlayerWeapon(playerid, 31, 100);
GivePlayerWeapon(playerid, 16, 5);
GivePlayerWeapon(playerid, 3, 1);
return 1;
}