#include <a_samp>
#define COLOR_LIGHTBLUE 0x33CCFF19
#include <zcmd>
new String[256];
new InDM[MAX_PLAYERS];
new Float:DMSpawns[][4] =
{
{247.5956,1458.5726,43.0946,185.8330},
{199.6086,1394.2821,43.0946,350.1746},
{247.5956,1458.5726,43.0946,185.8330},
{167.4688,1426.9861,26.2922,244.9503},
{186.0784,1456.1190,60.1355,184.6759},
{246.0688,1410.4255,23.3703,94.1182},
{287.6833,1411.3716,10.3918,82.7555}
};
public OnPlayerConnect(playerid)
{
InDM[playerid] = 0;
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(InDM[playerid] == 1)
{
//set the players position to the DM
}
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
InDM[playerid] = 0;
return 1;
}
public OnPlayerSpawn(playerid)
{
if(InDM[playerid] == 1)
{
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 10);
new rand = random(sizeof(DMSpawns));
SetPlayerPos(playerid, DMSpawns[rand][0], DMSpawns[rand][1], DMSpawns[rand][2]);
SetPlayerFacingAngle(playerid, DMSpawns[rand][3]);
GivePlayerWeapon(playerid, 35, 1500); // RPG
GivePlayerWeapon(playerid, 36, 1500); // HS Rocket
}
return 1;
}
CMD:rocket(playerid)
{
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(InDM[playerid] == 0)
{
InDM[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTBLUE , "You have joined /rocket, to leave type /rocket again");
format(String, sizeof(String), "Server:{FFFFFF}%s(%d) has joined RocketDM(/rocket)", PlayerName, playerid);
SendClientMessageToAll(COLOR_LIGHTBLUE, String);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 10);
new rand = random(sizeof(DMSpawns));
SetPlayerPos(playerid, DMSpawns[rand][0], DMSpawns[rand][1], DMSpawns[rand][2]);position at DM
SetPlayerFacingAngle(playerid, DMSpawns[rand][3]);
GivePlayerWeapon(playerid, 35, 1500); // RPG
GivePlayerWeapon(playerid, 36, 1500); // HS Rocket
}
else
{
InDM[playerid] = 0;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You have left /rocket to join again type /rocket");
SpawnPlayer(playerid);
SetPlayerHealth(playerid, 50);
ResetPlayerWeapons(playerid);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
}
return 1;
}
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3x, ©2005-2013 SA-MP Team [08:20:34] onfoot_rate = 30 (int) [08:20:34] [08:20:34] Server Plugins [08:20:34] -------------- [08:20:34] Loading plugin: sscanf [08:20:34] [08:20:34] =============================== [08:20:34] sscanf plugin loaded. [08:20:34] © 2009 Alex "******" Cole [08:20:34] =============================== [08:20:34] Loaded. [08:20:34] Loading plugin: streamer [08:20:34] *** Streamer Plugin v2.6.1 by Incognito loaded *** [08:20:34] Loaded. [08:20:34] Loading plugin: regex [08:20:34] [08:20:34] ______________________________________ [08:20:34] Regular Expression Plugin v0.2.1 loaded [08:20:34] ______________________________________ [08:20:34] By: Fro © Copyright <TBG> 2009-2011 [08:20:34] ______________________________________ [08:20:34] Loaded. [08:20:34] Loading plugin: Whirlpool [08:20:34] [08:20:34] ================== [08:20:34] [08:20:34] Whirlpool loaded [08:20:34] [08:20:34] ================== [08:20:34] [08:20:34] Loaded. [08:20:34] Loaded 4 plugins. [08:20:34] [08:20:34] Filterscripts [08:20:34] --------------- [08:20:34] Loading filterscript 'stunt.amx'... [08:20:34] Loaded 1 filterscripts. [08:20:34] Script[gamemodes/Freeroam.amx]: Run time error 19: "File or function is not found" [08:20:34] Number of vehicle models: 10 [08:20:40] --- Server Shutting Down. [08:20:40] [08:20:40] =============================== [08:20:40] sscanf plugin unloaded. [08:20:40] =============================== [08:20:40] *** Streamer Plugin v2.6.1 by Incognito unloaded *** [08:20:40] [08:20:40] ______________________________________ [08:20:40] Regular Expression Plugin v0.2.1 unloaded [08:20:40] ______________________________________ [08:20:40] [08:20:40] ==================== [08:20:40] [08:20:40] Whirlpool unloaded [08:20:40] [08:20:40] ==================== [08:20:40] ---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3x, ©2005-2013 SA-MP Team [08:22:15] onfoot_rate = 30 (int) [08:22:15] [08:22:15] Server Plugins [08:22:15] -------------- [08:22:15] Loading plugin: sscanf [08:22:15] [08:22:15] =============================== [08:22:15] sscanf plugin loaded. [08:22:15] © 2009 Alex "******" Cole [08:22:15] =============================== [08:22:15] Loaded. [08:22:15] Loading plugin: streamer [08:22:15] *** Streamer Plugin v2.6.1 by Incognito loaded *** [08:22:16] Loaded. [08:22:16] Loading plugin: regex [08:22:16] [08:22:16] ______________________________________ [08:22:16] Regular Expression Plugin v0.2.1 loaded [08:22:16] ______________________________________ [08:22:16] By: Fro © Copyright <TBG> 2009-2011 [08:22:16] ______________________________________ [08:22:16] Loaded. [08:22:16] Loading plugin: Whirlpool [08:22:16] [08:22:16] ================== [08:22:16] [08:22:16] Whirlpool loaded [08:22:16] [08:22:16] ================== [08:22:16] [08:22:16] Loaded. [08:22:16] Loaded 4 plugins. [08:22:16] [08:22:16] Filterscripts [08:22:16] --------------- [08:22:16] Loading filterscript 'funfair2.amx'... [08:22:16] Loading filterscript 'stunt.amx'... [08:22:16] Loading filterscript 'H_speedo.amx'... [08:22:16] Loaded 3 filterscripts. [08:22:16] Script[gamemodes/Freeroam.amx]: Run time error 19: "File or function is not found" [08:22:16] Number of vehicle models: 10 [08:22:17] --- Server Shutting Down. [08:22:18] [08:22:18] =============================== [08:22:18] sscanf plugin unloaded. [08:22:18] =============================== [08:22:18] *** Streamer Plugin v2.6.1 by Incognito unloaded *** [08:22:18] [08:22:18] ______________________________________ [08:22:18] Regular Expression Plugin v0.2.1 unloaded [08:22:18] ______________________________________ [08:22:18] [08:22:18] ==================== [08:22:18] [08:22:18] Whirlpool unloaded [08:22:18] [08:22:18] ==================== [08:22:18] ---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3x, ©2005-2013 SA-MP Team [08:22:25] onfoot_rate = 30 (int) [08:22:25] [08:22:25] Server Plugins [08:22:25] -------------- [08:22:25] Loading plugin: sscanf [08:22:25] [08:22:25] =============================== [08:22:25] sscanf plugin loaded. [08:22:25] © 2009 Alex "******" Cole [08:22:25] =============================== [08:22:25] Loaded. [08:22:25] Loading plugin: streamer [08:22:25] *** Streamer Plugin v2.6.1 by Incognito loaded *** [08:22:25] Loaded. [08:22:25] Loading plugin: regex [08:22:25] [08:22:25] ______________________________________ [08:22:25] Regular Expression Plugin v0.2.1 loaded [08:22:25] ______________________________________ [08:22:25] By: Fro © Copyright <TBG> 2009-2011 [08:22:25] ______________________________________ [08:22:25] Loaded. [08:22:25] Loading plugin: Whirlpool [08:22:25] [08:22:25] ================== [08:22:25] [08:22:25] Whirlpool loaded [08:22:25] [08:22:25] ================== [08:22:25] [08:22:25] Loaded. [08:22:25] Loaded 4 plugins. [08:22:25] [08:22:25] Filterscripts [08:22:25] --------------- [08:22:25] Loading filterscript 'stunt.amx'... [08:22:25] Loaded 3 filterscripts. [08:22:25] |--------UGF SERVER--------| [08:22:25] Number of vehicle models: 32 [08:22:27] --- Server Shutting Down. [08:22:27] [08:22:27] =============================== [08:22:27] sscanf plugin unloaded. [08:22:27] =============================== [08:22:27] *** Streamer Plugin v2.6.1 by Incognito unloaded *** [08:22:27] [08:22:27] ______________________________________ [08:22:27] Regular Expression Plugin v0.2.1 unloaded [08:22:27] ______________________________________ [08:22:27] [08:22:27] ==================== [08:22:27] [08:22:27] Whirlpool unloaded [08:22:27] [08:22:27] ==================== [08:22:27]
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3x, ©2005-2013 SA-MP Team [08:20:34] onfoot_rate = 30 (int) [08:20:34] [08:20:34] Server Plugins [08:20:34] -------------- [08:20:34] Loading plugin: sscanf [08:20:34] [08:20:34] =============================== [08:20:34] sscanf plugin loaded. [08:20:34] © 2009 Alex "******" Cole [08:20:34] =============================== [08:20:34] Loaded. [08:20:34] Loading plugin: streamer [08:20:34] *** Streamer Plugin v2.6.1 by Incognito loaded *** [08:20:34] Loaded. [08:20:34] Loading plugin: regex [08:20:34] [08:20:34] ______________________________________ [08:20:34] Regular Expression Plugin v0.2.1 loaded [08:20:34] ______________________________________ [08:20:34] By: Fro © Copyright <TBG> 2009-2011 [08:20:34] ______________________________________ [08:20:34] Loaded. [08:20:34] Loading plugin: Whirlpool [08:20:34] [08:20:34] ================== [08:20:34] [08:20:34] Whirlpool loaded [08:20:34] [08:20:34] ================== [08:20:34] [08:20:34] Loaded. [08:20:34] Loaded 4 plugins. [08:20:34] [08:20:34] Filterscripts [08:20:34] --------------- [08:20:34] Loading filterscript 'stunt.amx'... [08:20:34] Loaded 1 filterscripts. [08:20:34] Script[gamemodes/Freeroam.amx]: Run time error 19: "File or function is not found" [08:20:34] Number of vehicle models: 10 [08:20:40] --- Server Shutting Down. [08:20:40] [08:20:40] =============================== [08:20:40] sscanf plugin unloaded. [08:20:40] =============================== [08:20:40] *** Streamer Plugin v2.6.1 by Incognito unloaded *** [08:20:40] [08:20:40] ______________________________________ [08:20:40] Regular Expression Plugin v0.2.1 unloaded [08:20:40] ______________________________________ [08:20:40] [08:20:40] ==================== [08:20:40] [08:20:40] Whirlpool unloaded [08:20:40] [08:20:40] ==================== [08:20:40]