28.04.2016, 19:21
Hey guys. I recently made DM zone and commands and everything but now when player dies he spawns in that DM zone (and that is what i want) but he spawns with no guns and he can type again /dm (and i don't want that). How can i fix this. Here is my script of that
Код:
if(PlayerJoinedDMZone[playerid] == 1) { new randomcoords = random(sizeof(DMSpawn)); SPP(playerid, DMSpawn[randomcoords][0], DMSpawn[randomcoords][1], DMSpawn[randomcoords][2]); } return 1; } CMD:dm(playerid, params[]) { PlayerJoinedDMZone[playerid] = 1; new randomcoords = random(sizeof(DMSpawn)); SPP(playerid, DMSpawn[randomcoords][0], DMSpawn[randomcoords][1], DMSpawn[randomcoords][2]); GivePlayerWeapon(playerid, 26, 100); GivePlayerWeapon(playerid, 22, 100); GivePlayerWeapon(playerid, 25, 100); GivePlayerWeapon(playerid, 28, 500); GivePlayerWeapon(playerid, 30, 100); GivePlayerWeapon(playerid, 33, 50); SetPlayerArmour(playerid, 100); SPH(playerid, 100); return 1; } CMD:napustidm(playerid, params[]) { PlayerJoinedDMZone[playerid] = 0; SCM(playerid, 0xF81414, "Napustili ste DM zonu"); SPP(playerid, 1958.3783, 1343.1572, 15.3746); return 1; }