DM area
#1

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
Reply
#2

ResetPlayerWeapons(playerid);
Reply
#3


And GetPlayerHealth , SetPlayerHealth.
Reply
#4

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

SetPlayerWorldBounds( players, 5000.0, -5000.0, 5000.0, -5000.0 ); =?
Reply
#6

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)