28.04.2016, 19:24
Okay, so player spawns at DM zone after dying? And that's how you want it to work, but player doesnt get the weps? Well, just check your variable if its equal to 1 (the DM zone one) give him the guns.
Edit: I saw your reply, I'm from phone chances are this code might miss some braces or whatever.
Edit: I saw your reply, I'm from phone chances are this code might miss some braces or whatever.
Код:
if(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; }