Stupid DM bug
#1

I run a server with some DM's, people teleport out of the DM with weapons,

I'm really new to scripting, Can someone give me a pawn code to remove weapons upon leaving the DM zone or disable commands
and add a /exitdm command?
Reply
#2

ResetPlayerWeapons( playerid );
________
Suzuki Dr-Z400
Reply
#3

How do you check when a player leaves the area?
Reply
#4

check()
{
for(i = 0; i < maxPlayers; i++)
{
if(!IsPlayerConnected(i))
{
if(!playertopoint(i, x, y, z, radius))
ResetWeapon(i)
}
}
}


}
Reply
#5

Quote:
Originally Posted by brett7
if(!IsPlayerConnected(i))
{
}
Why are you checking if player ISN'T connected?
Reply
#6

Thanks Bret,
The code worked awesome, Thanks alot!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)