SA-MP Forums Archive
DM area - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: DM area (/showthread.php?tid=62040)



DM area - CAMERON_BANFIELD - 17.01.2009

Hi, i have a DM area set up. i just want to make it so when the player leaves the boundary by teleporting or using /goto the weapons get taken off the player and the health goes back to normal. How do i do it. thanks
P.S. The boundary is: 93.423, 1319.6, 303.6248, 1483.09


Re: DM area - FUNExtreme - 17.01.2009

ResetPlayerWeapons(playerid);


Re: DM area - BioFreeze - 17.01.2009


And GetPlayerHealth , SetPlayerHealth.


Re: DM area - CAMERON_BANFIELD - 17.01.2009

How do i make it do that if they go out of the area (the boundary)


Re: DM area - pen_theGun - 17.01.2009

SetPlayerWorldBounds( players, 5000.0, -5000.0, 5000.0, -5000.0 ); =?


Re: DM area - CAMERON_BANFIELD - 17.01.2009

Quote:
Originally Posted by pen_theGun
SetPlayerWorldBounds( players, 5000.0, -5000.0, 5000.0, -5000.0 ); =?
WTF


Re: DM area - milkshake333 - 05.02.2009

please say your command to go to the DM Area. Then I can fix it.
if your command is something like
Code:
if (strcmp(cmd, "/dmarea", true) == 0)
    {
       SetPlayerWorldBounds(playerid, 93.423, 1319.6, 303.6248, 1483.09);
       SetPlayerPos(playerid, the spawn of the dm area);
       GivePlayerWeapon etc......
       return 1;
    }
Hope this helps you out