SA-MP Forums Archive
Help cmds +REP - 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: Help cmds +REP (/showthread.php?tid=529515)



Help cmds +REP - Spartaaaaa - 02.08.2014

Hello,
I want DM /KILL system when i join DM or RACE i must use /KILL to leave RACE/DM which code i have to post here to let you guys know? any help guys


Re: Help cmds +REP - Steel_ - 02.08.2014

Just use this
Код:
CMD:kill(playerid, params)
    {
        SetPlayerHealth(playerid, 0);
        return 1;
    }
And make something like
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
      SpawnPlayer(playerid); (I know OnPlayerDeath automatically spawns but if player gets shot in the DM or race he starts dm or race again)
}
to Spawn the player in the servers spawn place