Posts: 771
Threads: 135
Joined: Aug 2009
Reputation:
0
Hey guys!!! IM really depressed right now, cuz i cant find the solution to this answer anywhere (well i have found it but i cant understand it) anyway! I have created a heal cmd which sets player health to 100. but i want to stop players from using /heal at a dm zone, or else it just spoils the whole fun of it being a dm zone!
Plz can someone show me what i have to do! for example, maybe write out the script for that cmd plz guys!
Posts: 543
Threads: 28
Joined: Jun 2009
Reputation:
0
What does the code to your "dm zone" look like, show us.
Posts: 771
Threads: 135
Joined: Aug 2009
Reputation:
0
To be honest, it doesnt really have much of a code. but ill give u it anyway
here it is!
[Pawn Code]public miniwar(playerid)
{
printf("ID %d has successfully entered war DM",playerid);
GivePlayerWeapon(playerid, 31, 99999);
GivePlayerWeapon(playerid, 24, 99999);
GivePlayerWeapon(playerid, 16, 99999);
SetPlayerWorldBounds(playerid, 560.538, -210.2018, 2207.118, 1599.869);
}[/Pawn Code]
It works fine, just i dont wannt ppl to use /heal in it!
Posts: 771
Threads: 135
Joined: Aug 2009
Reputation:
0
hey thnx dude, it gave me a few errors, but i cured them :P
it works