20.03.2015, 12:00
Still the same , when player type /minigundm , he respawns more times , like if i typed /minigundm , i spawn at minigundm and if again i type /minigundm i spawn again , it doesn't show anything that you are already in minigun dm.. and if i am in minigundm , and i type /dm or /kart1 , he spawns there...
Codes
Codes
Quote:
CMD:minigundm(playerid, params[]) { if(inMinigun{playerid}) return SendClientMessage(playerid,-1,"You are already in a Minigun DM!"); new Random = random(sizeof(RandomSpawns)); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]); SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]); GivePlayerWeapon(playerid,38 ,10000); return 1; } CMD:leave(playerid) { //In the leave command: if(!inMinigun{playerid}) return SendClientMessage(playerid,-1,"You aren't in a Minigun Event!"); inMinigun{playerid} = false; return 1; } CMD:weapons(playerid,params[]) { ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons", "Desert Eagle - 150 Ammo [ Cost - $500 ]\nChainSaw - 1 [ Cost - $500 ]\nSilenced 9mm - 150 Ammo [ Cost - $500]\nShotGun - 150 Ammo [ Cost - $700]\nSawnoff Shotgun - 200 Ammo [ Cost - $1k ]\nCombactShotgun - 200 Ammo [ Cost $1k ]\nMicro Guns - SMG[ Cost - $800 ]\nMicro Guns - UZI [ Cost - $800 ]\nM4 - [ Cost - $1500 ]\nAK47 [ Cost - $1500 ]\nCountyRifle [ Cost - $2000 ]\nSniperRifle [ Cost - $2000]", "Select", "Close"); return 1; } CMD:kart1(playerid, params[]) { if(inMinigun{playerid}) return SendClientMessage(playerid,-1,"You are in a Minigun DM! Type /leave to leave it!"); SetPlayerPos(playerid , -1187.89453125,-1032.46899414,128.55102539); ResetPlayerWeapons(playerid); SetPlayerHealth(playerid , 100000); SendClientMessage(playerid ,0x00FF00FF , " Welcome to Kart FreeRoam"); SetPlayerArmour(playerid , 0); return 1; } CMD:dm(playerid, params[]) { if(inMinigun{playerid}) return SendClientMessage(playerid,-1,"You are in a Minigun DM! Type /leave to leave it!"); SetPlayerPos(playerid , -1386.0922, 3986.8069, 98.6692); SendClientMessage(playerid, 0x00FF00FF, "Welcome TO Deagle and Shotgun DM ."); SetPlayerHealth(playerid, 100); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 25, 100000); GivePlayerWeapon(playerid, 24, 100000); SetPlayerArmour(playerid, 100); return 1; } CMD:kill(playerid,params[]) { if(inMinigun{playerid}) return SendClientMessage(playerid,-1,"You are in a Minigun DM! Type /leave to leave it!"); SetPlayerHealth(playerid, 0); return 1; } |