08.02.2017, 17:35
How can I add it so when the player gets hit it adds an actor to his position?
Thanks, and I apologize for all the posts. I'm new to all this scripting stuff.
Quote:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid) { if(weaponid == SLAP_GUN && issuerid == DildoSlapper) { GameTextForPlayer(playerid, "~r~DEAD~w~!", 3000, 5); GameTextForPlayer(playerid, "~g~KILLED~w~!", 3000, 5); Dead[playerid] = true; currDead++; TogglePlayerSpectating(playerid, true); PlayerSpectatePlayer(playerid, issuerid, SPECTATE_MODE_NORMAL); if(currDead == (FixPlayers() - 1)) { EndGame(); } } return; } |