01.10.2011, 08:31
Hello Guys i need A Help With Dm
Please this dm when join mini-gun madness time start of 15 second after 15 seconds round start when a player win round he will out from dm area and he win 500 mingun:
Help me please there is code make it
Please this dm when join mini-gun madness time start of 15 second after 15 seconds round start when a player win round he will out from dm area and he win 500 mingun:
Help me please there is code make it
Код:
if(strcmp(cmdtext, "/minigunmadness", true) == 0) { new name[MAX_PLAYER_NAME]; new msg[256]; GetPlayerName(playerid,name,MAX_PLAYER_NAME); format(msg, sizeof(msg), "TELE: %s has gone to Minugun Madness (/minigunmadness)",name,playerid); SendClientMessageToAll(COLOR_YELLOW,msg); ResetPlayerWeapons(playerid); new MinigunMadness[128], playerName[MAX_PLAYER_NAME], RandomSpawn = random(6); GetPlayerName(playerid, playerName, MAX_PLAYER_NAME); DMZone[playerid] = 1; if (RandomSpawn == 0) { InCar[playerid] = false; SetPlayerPos(playerid, 2595.3945,2758.7642,23.8222); SetPlayerFacingAngle(playerid, 247.9706); SetCameraBehindPlayer(playerid); } if (RandomSpawn == 1) { InCar[playerid] = false; SetPlayerPos(playerid, 2600.9648,2726.4263,23.8222); SetPlayerFacingAngle(playerid, 329.4380); SetCameraBehindPlayer(playerid); } if (RandomSpawn == 2) { InCar[playerid] = false; SetPlayerPos(playerid, 2639.5300,2729.5732,23.8222); SetPlayerFacingAngle(playerid, 46.8321); SetCameraBehindPlayer(playerid); } if (RandomSpawn == 3) { InCar[playerid] = false; SetPlayerPos(playerid, 2642.3181,2757.0920,23.8222); SetPlayerFacingAngle(playerid, 121.7195); SetCameraBehindPlayer(playerid); } if (RandomSpawn == 4) { InCar[playerid] = false; SetPlayerPos(playerid, 2649.0498,2780.8462,19.3222); SetPlayerFacingAngle(playerid, 196.2701); SetCameraBehindPlayer(playerid); } if (RandomSpawn == 5) { InCar[playerid] = false; SetPlayerPos(playerid, 2607.4639,2732.1467,36.5386); SetPlayerFacingAngle(playerid, 255.2007); SetCameraBehindPlayer(playerid); } GivePlayerWeapon(playerid, 38, 2000); SetPlayerInterior(playerid, 0); SendClientMessage(playerid, COLOR_BASIC, "You have been teleported to -MinigunMadness-"); SendClientMessage(playerid, COLOR_RED, "SHOOTING WITH MINIGUN OUTSIDE -MINIGUNMADNESS- WILL RESULT IN KICK OR BAN!!!"); format(MinigunMadness, sizeof(MinigunMadness), "%s has teleported to /MinigunMadness", playerName); for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(ReceiveInfo[i] == true) { SendClientMessage(i, COLOR_GREY, MinigunMadness); } } } return 1; }