16.06.2010, 14:48
Ok i have searched through and cannot find any answer's,so i decided to post this to see if any one can help.
This is a dm match inside an interior,but as you guessed it will not work,i had a go with IsPlayerInArea,but i failed
Anyways can anyone shed a bit of light for me
cheers in advance
This is a dm match inside an interior,but as you guessed it will not work,i had a go with IsPlayerInArea,but i failed

Anyways can anyone shed a bit of light for me
cheers in advance
Код:
if(IsDMRoomAllowed == 1 && InDM[playerid]==0){
SetPlayerInterior(playerid,10);
new randomize=random(sizeof(ROOM));
SetPlayerPos(playerid, ROOM[randomize][0],ROOM[randomize][1],ROOM[randomize][2]);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 8, 1);
GivePlayerWeapon(playerid, 35, 500);
GivePlayerWeapon(playerid, 24, 100);
SetPlayerWorldBounds(playerid,-967.8138,-1137.5613,1100.4780,1018.7023);
InDM[playerid]=1;
for (new slot=0; slot < 12; slot++) {
GetPlayerWeaponData(playerid,slot,weapdata[playerid][WEAPON_SLOT][slot],weapdata[playerid][AMMO_SLOT][slot]);}
GetPlayerName(playerid, dname, sizeof(dname));
format(string, sizeof(string), "%s has entered the Deathmatch ROOM: /dmmenu", dname);
SendClientMessageToAll(COLOR_YELLOW, string);
SendClientMessage(playerid, COLOR_ORANGE, "KILL ALL !!!");
SendClientMessage(playerid, COLOR_YELLOW, "To leave the DM ROOM type: /exitdm");}

