18.10.2009, 21:01
can someone please tell me how to make a DM zone where you can fight and when you go out of that zone your weapons will be deleted.
maybe a code?
maybe a code?
new dm_zone[MAX_PLAYERS]; if(strcmp("/stunt", cmdtext, true, 10) == 0) // your other commads { SetPlayerPos(playerid,398.1079,2540.1904,19.6311); if(dm_zone[playerid] == 1) // This query must always be in each command, unless you want to have weapons with which he and other commands { ResetPlayerWeapons(playerid); dm_zone[playerid] = 0; return 1; } return 1; } if (strcmp("/dm", cmdtext, true, 10) == 0) // Dm command { SetPlayerPos(playerid,3103.0754,-2289.9517,15.4480); GivePlayerWeapon(playerid, 26,64); GivePlayerWeapon(playerid, 28,264); GivePlayerWeapon(playerid, 30,264); dm_zone[playerid] = 1; return 1; }