Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerSpawn(playerid)
- {
- SetPlayerPos(playerid,2288.4778,-2099.9673,21.9800);
- switch(GetPVarInt(playerid, "DMZ"))
- {
- case 1:
- {
- if(GetPVarInt(playerid, "DMZ1"))
- {
- CancelSelectTextDraw(playerid);
- new rand = random(sizeof(random_spawn_deathmatch));
- SetPlayerPos(playerid, random_spawn_deathmatch[rand][0], random_spawn_deathmatch[rand][1], random_spawn_deathmatch[rand][2]);
- SetPlayerFacingAngle(playerid, random_spawn_deathmatch[rand][3]);
- SpawnZ_Close(playerid);
- if(GetPVarInt(playerid,"DM_Skin"))
- {
- SetPlayerSkin(playerid,playerskin_dm);
- }
- if(GetPVarInt(playerid,"gundeaglerifle"))
- {
- GivePlayerWeapon(playerid, 34, 50);
- GivePlayerWeapon(playerid, 24, 300);
- }
- if(GetPVarInt(playerid, "gundeagleshot"))
- {
- GivePlayerWeapon(playerid, 24, 300);
- GivePlayerWeapon(playerid, 27, 300);
- }
- if(GetPVarInt(playerid, "gundeaglemp5"))
- {
- GivePlayerWeapon(playerid, 24, 300);
- GivePlayerWeapon(playerid, 29, 300);
- }
- if(GetPVarInt(playerid, "gundeaglem4"))
- {
- GivePlayerWeapon(playerid, 24, 300);
- GivePlayerWeapon(playerid, 31, 300);
- }
- if(GetPVarInt(playerid, "gunrifle"))
- {
- GivePlayerWeapon(playerid, 34, 50);
- }
- if(GetPVarInt(playerid, "gunshot"))
- {
- GivePlayerWeapon(playerid, 27, 300);
- }
- if(GetPVarInt(playerid, "gunmp5"))
- {
- GivePlayerWeapon(playerid, 29, 300);
- }
- if(GetPVarInt(playerid, "gunm4"))
- {
- GivePlayerWeapon(playerid, 31, 300);
- }
- if(GetPVarInt(playerid, "gundeagle"))
- {
- GivePlayerWeapon(playerid, 24, 100);
- }
- }
- }
- case 2:
- {
- if(GetPVarInt(playerid, "DMZ2"))
- {
- CancelSelectTextDraw(playerid);
- new rand = random(sizeof(random_spawn_deathmatch2));
- SetPlayerPos(playerid, random_spawn_deathmatch2[rand][0], random_spawn_deathmatch2[rand][1], random_spawn_deathmatch2[rand][2]);
- SetPlayerFacingAngle(playerid, random_spawn_deathmatch2[rand][3]);
- SpawnZ_Close(playerid);
- GivePlayerWeapon(playerid, 34, 50);
- GivePlayerWeapon(playerid, 24, 300);
- if(GetPVarInt(playerid,"DM_Skin"))
- {
- SetPlayerSkin(playerid,playerskin_dm);
- }
- if(GetPVarInt(playerid,"gundeaglerifle"))
- {
- GivePlayerWeapon(playerid, 34, 50);
- GivePlayerWeapon(playerid, 24, 300);
- }
- if(GetPVarInt(playerid, "gundeagleshot"))
- {
- GivePlayerWeapon(playerid, 24, 300);
- GivePlayerWeapon(playerid, 27, 300);
- }
- if(GetPVarInt(playerid, "gundeaglemp5"))
- {
- GivePlayerWeapon(playerid, 24, 300);
- GivePlayerWeapon(playerid, 29, 300);
- }
- if(GetPVarInt(playerid, "gundeaglem4"))
- {
- GivePlayerWeapon(playerid, 24, 300);
- GivePlayerWeapon(playerid, 31, 300);
- }
- if(GetPVarInt(playerid, "gunrifle"))
- {
- GivePlayerWeapon(playerid, 34, 50);
- }
- if(GetPVarInt(playerid, "gunshot"))
- {
- GivePlayerWeapon(playerid, 27, 300);
- }
- if(GetPVarInt(playerid, "gunmp5"))
- {
- GivePlayerWeapon(playerid, 29, 300);
- }
- if(GetPVarInt(playerid, "gunm4"))
- {
- GivePlayerWeapon(playerid, 31, 300);
- }
- if(GetPVarInt(playerid, "gundeagle"))
- {
- GivePlayerWeapon(playerid, 24, 100);
- }
- }
- }
- case 3:
- {
- if(GetPVarInt(playerid, "DMZ3"))
- {
- CancelSelectTextDraw(playerid);
- new rand = random(sizeof(random_spawn_deathmatch3));
- SetPlayerPos(playerid, random_spawn_deathmatch3[rand][0], random_spawn_deathmatch3[rand][1], random_spawn_deathmatch3[rand][2]);
- SetPlayerFacingAngle(playerid, random_spawn_deathmatch3[rand][3]);
- SpawnZ_Close(playerid);
- GivePlayerWeapon(playerid, 34, 50);
- GivePlayerWeapon(playerid, 24, 300);
- if(GetPVarInt(playerid,"DM_Skin"))
- {
- SetPlayerSkin(playerid,playerskin_dm);
- }
- if(GetPVarInt(playerid,"gundeaglerifle"))
- {
- GivePlayerWeapon(playerid, 34, 50);
- GivePlayerWeapon(playerid, 24, 300);
- }
- if(GetPVarInt(playerid, "gundeagleshot"))
- {
- GivePlayerWeapon(playerid, 24, 300);
- GivePlayerWeapon(playerid, 27, 300);
- }
- if(GetPVarInt(playerid, "gundeaglemp5"))
- {
- GivePlayerWeapon(playerid, 24, 300);
- GivePlayerWeapon(playerid, 29, 300);
- }
- if(GetPVarInt(playerid, "gundeaglem4"))
- {
- GivePlayerWeapon(playerid, 24, 300);
- GivePlayerWeapon(playerid, 31, 300);
- }
- if(GetPVarInt(playerid, "gunrifle"))
- {
- GivePlayerWeapon(playerid, 34, 50);
- }
- if(GetPVarInt(playerid, "gunshot"))
- {
- GivePlayerWeapon(playerid, 27, 300);
- }
- if(GetPVarInt(playerid, "gunmp5"))
- {
- GivePlayerWeapon(playerid, 29, 300);
- }
- if(GetPVarInt(playerid, "gunm4"))
- {
- GivePlayerWeapon(playerid, 31, 300);
- }
- if(GetPVarInt(playerid, "gundeagle"))
- {
- GivePlayerWeapon(playerid, 24, 100);
- }
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement