20.08.2010, 22:51
Heres a better way....
also add this into your teleport command
and you might also want to make a /leavedm or sumthin command
hope it helped...
offtopic:
lol u are using Stunt Evolution GM arent you?
Код:
new DMarea; public OnPlayerSpawn(playerid) { if (DMarea == 1) { new rand = random(sizeof(MDM)); SetPlayerPos(playerid,MDM[rand][PlayerX],MDM[rand][PlayerY],MDM[rand][PlayerZ]); SetPlayerInterior(playerid,0); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,38,9999); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); }
Код:
DMarea == 1;
Код:
if (strcmp(cmdtext, "/leavedm", true)==0) { DMarea = 0; ResetPlayerWeapons(playerid); SpawnPlayer(playerid); return 1; }
offtopic:
lol u are using Stunt Evolution GM arent you?