CSõsztökGondoltam megosztom veletek ezt a játékmódot ami angol.
Ez egy nagyon jó Stunt/drift Játékmód
a szerveren elérhetõ Parancsok /teles /help /cmds /rules /shop /Admins
Ezek a parancsok önmagukért beszélnek
Letöltés:
http://www.solidfiles.com/d/da5d/ PAWN kód :
#include <a_samp>
#include <core>
#include <float>
#include <time>
#include <zcmd>
#include <dini>
#include <sscanf>
#include <dudb>
#include <streamer>
#include <a_players>
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#pragma tabsize 0
#pragma unused strtok
#pragma unused ret_memcpy
//
#define SLOT 1
//------------------------------------------------------------------------------
#define TEAM_COPS 0
#define TEAM_ARMY 1
#define TEAM_RICH 2
#define TEAM_WORKERS 3
#define TEAM_FARMERS 4
#define TEAM_MEDICS 5
#define TEAM_FIREMEN 6
#define TEAM_TRAIDS 7
#define TEAM_STUNT 8
#define COLOR_BRIGHTRED 0xFF000AAA
#define COLOR_AQUA 0x00FFFFAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_BEIGE 0xFFF8DCAA
#define COLOR_BLACK 0x000000AA
#define COLOR_BLUE 0x0000FFAA
#define COLOR_BLUELIGHTER 0x00BFFFAA
#define COLOR_BLUELIGHT 0x1E90FFAA
#define COLOR_BLUEMEDIUM 0x0000CDAA
#define COLOR_BLUEDARK 0x00008BAA
#define COLOR_PINK 0xFF1493AA
#define COLOR_PINKDARK 0xFF00FFAA
#define COLOR_GREEN 0x008000AA
#define COLOR_GREENLIGHT 0x00FF00AA
#define COLOR_GREENDARK 0x006400AA
#define COLOR_MAROON 0x800000AA
#define COLOR_OKER 0x808000AA
#define COLOR_ORANGE 0xFF4500AA
#define COLOR_ORANGELIGHT 0xFF8C00AA
#define COLOR_PURPLE 0x800080AA
#define COLOR_VIOLETDARK 0x9400D3AA
#define COLOR_INDIGO 0xAB0082AA
#define COLOR_RED 0xFF0000AA
#define COLOR_SAND 0xFFDEADAA
#define COLOR_SILVER 0xC0C0C0AA
#define COLOR_TEAL 0x008080AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_GOLD 0xFFD700AA
#define COLOR_BROWN 0x8B4513AA
#define COLOR_BROWNLIGHT 0xA0522DAA
#define COLOR_GRAY 0xA9A9A9AA
#define COLOR_GRAYDARK 0x696969AA
#define COLOUR_YELLOW 0xFFFF00FF
#define COLOUR_RED 0xFF3E3EFF
// Rainbow Script Colors
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define BLUE 0x0000FFAA
#define PINK 0xFF66FFAA
#define BLACK 0x000000AA
#define AQUA 0x7CFC00AA
#define YELLOW 0xFFFF00AA
#define WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define WHITEP 0xFFFFD5AA
#define GREY 0xAFAFAFAA
#define CYAN 0x99FFFFAA
#define PURPLE 0x9900FFAA
#define ADMIN_RED 0xFB0000FF
#define RED 0xE60000FF
#define ADMIN_RED 0xFB0000FF
#define LIGHTRED 0xFF8080FF
#define PLAYER_COLOR 0xFFFFFFFF
#define LIGHTGREEN 0x38FF06FF
#define DARKPINK 0xE100E1FF
#define DARKGREEN 0x008040FF
#define ANNOUNCEMENT 0x00CACAFB
#define AFK 0x6AF7E1FF
#define COLOR_SYSTEM 0xEFEFF7AA
#define PLAYER_VIEW 0xC0C0C0FF
#define COLOR_GRAD1 0xB4B5B7FF
#define NICESKY 0x99FFFFAA
#define GRAY 0xCECECEFF
//////////////////////////////////////////
#define green 0x008000AA
#define Version 1.2
#define PocketMoney 7000 // Amount player recieves on spawn.
#define INACTIVE_PLAYER_ID 255
#define GIVECASH_DELAY 5000 // Time in ms between /givecash commands.
#define NUMVALUES 4
#define PRESSED(%0) \\
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
#define DRIFT_MINKAT 10.0
#define DRIFT_MAXKAT 90.0
#define DRIFT_SPEED 30.0
#define COLOR_Label 0xFFFFFFFF
#define COLOR_LabelOut 0x00000040
#define COLOR_ValueOut 0xFFFFFF40
#define COLOR_Value 0x000000FF
#define USE_DIALOGS true
#define Label_X 500
#define Value_X 500
#define TD_Y 100
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#define GREY 0xAFAFAFAA
#define GREEN 0x33AA33AA
#define YELLOW 0xFFFF00AA
#define WHITE 0xFFFFFFAA
#define LIGHTBLUE 0x33CCFFAA
#define ORANGE 0xFF9900AA
#define red 0xE21F1FFF
#define yellow 0xFFFF00FF
#define blue 0x1229FAFF
#define orange 0xF97804FF
#define grey 0xCECECEFF
#define mustlogin
#define autologin
#define logchat
#define logadmin
#define joinmes
#define leavemes
#define l_red 0xFF0000AA
#define l_green 0x33FF33AA
#define COLOUR_YELLOW 0xFFFF00FF
#define COLOUR_RED 0xFF3E3EFF
// New V1.3
#define SaveLogs true
//IRC Defines
new lift1;
new lift2;
new lift3;
//------------------------------------------------------------------------------
enum PlayerInfo
{
AFKstatus,
Kills,
Deaths
}
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
new PlayerData[MAX_PLAYERS][PlayerInfo];
//------------------------------------------------------------------------------
forward Givecashdelaytimer(playerid);
forward SetupPlayerForClassSelection(playerid);
forward GameModeExitFunc();
forward SendPlayerFormattedText(playerid, const str[], define);
forward public SendAllFormattedText(playerid, const str[], define);
forward SetPlayerToTeamColor(playerid);
forward SendTeamMessage(team, color, string[]);
forward MessageToGroove(playerid, const string[]);
forward SendMSG();
forward Drift();
forward AngleUpdate();
forward DriftExit(playerid);
forward CheckPlayerState();
forward AutoFix();
forward CountDownTimer(playerid);
forward MessageToAdmins(color, const string[]);
forward CountDownTimer(playerid);
forward Rainbow();
//------------------------------------------------------------------------------
new level[MAX_PLAYERS];
new logged[MAX_PLAYERS];
new muted[MAX_PLAYERS];
new kills[MAX_PLAYERS];
new deaths[MAX_PLAYERS];
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
new DriftTimer[MAX_PLAYERS];
new TimerA,TimerB,TimerC;
new DriftPointsNow[MAX_PLAYERS];
new PlayerDriftCancellation[MAX_PLAYERS];
new Float:ppos[MAX_PLAYERS][3];
enum Float:Pos{ Float:sX,Float:sY,Float:sZ };
new Float:SavedPos[MAX_PLAYERS][Pos];
new bool:DriftMode[MAX_PLAYERS]=false;
new DriftBonus[MAX_PLAYERS]=1;
new Float:HealthInit[MAX_PLAYERS]=1000.0;
new bool:AutoFixBool[MAX_PLAYERS]=true;
new Text:TDLabels[3];
new Text:TDValueDrift[MAX_PLAYERS];
new Text:TDValueBonus[MAX_PLAYERS];
new Text:TDValueCash[MAX_PLAYERS];
new Votes = 0;
new Voted[MAX_PLAYERS];
new VoteActive;
new thingy;
new VPlayers;
new KickName[24];
new PlayerName[24];
new IDofotherplayer;
new Count;
new Timer;
new Text:TCountDown;
new Text:VoteKick;
new gPlayerClass[MAX_PLAYERS];
new gTeam[MAX_PLAYERS];
new gActivePlayers[MAX_PLAYERS];
new gLastGaveCash[MAX_PLAYERS];
new Text:TextdrawName;//Name
new Text:TextdrawTime;//Time
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new bool: ReceiveInfo[MAX_PLAYERS];
new bool: InCar[MAX_PLAYERS];
new Name[MAX_PLAYERS];
new PVeh[MAX_PLAYERS];//NRG
new Float:X,Float:Y,Float:Z;
new Text:Date;
new On[MAX_VEHICLES];
new RandomMSG[][] =
{
\"System : {FFFFFF} /cmds To See The List Of Available Commands\",
\"System : {00FFFF} /rules To See The Rules\",
\"System : {FF9933} /shop For Buying Weapons & Sports Cars\",
\"System : {FF99CC} /credits To See Credits\",
\"System : {330066} /teles To See Teleports Of Server\",
\"System : {6633CC} Buy Vip\'s Feature at firclan.smfnew.com\",
\"System : {33FF00} Admin Applies Are Currently Opened\",
\"System : {660000} World Stunting v1.3\",
\"System : {9999FF} Need a Vehicle EX: type /nrg USE: /car <vehname> <color1> <color2>\",
\"System : {00FFFF} /admins To See Online Admins\",
\"System : {666600} /report To Report Hackers [Don\'t Chat]\",
\"System : {66FF00} No Admins , Report Hackers In Forum\",
\"System : {FF3300} Suggest Commands In Forum\",
\"System : {33FFCC} Enjoy Skydiving in Only 1000$$ use /skydive \",
\"System : {333333} Our Website is www.firclan.smfnew.com For More Information /site\"
};
new Float:gcopsSP[ 4 ][ 4 ] = {
{-1594.2036, 716.0620, -4.9063, 273.1099},
{-1601.3488, 732.6129, -4.9063, 270.5193},
{-1565.4688, 756.1705, -4.9063, 135.1815},
{-1616.6149, 757.9897, -4.9063, 232.0023}
};
new Float:garmySP[ 5 ][ 4 ] = {
{-1320.7700, 485.9830, 11.1875, 270.9012},
{-1343.5037, 439.8155, 7.1875, 177.5036},
{-1349.2628, 454.0258, 7.1875, 269.2878},
{-1223.9421, 466.2971, 7.1875, 87.5761},
{-1336.2811, 506.1561, 11.1953, 175.6003}
};
new Float:grichSP[ 5 ][ 4 ] = {
{-2662.1272, 876.3647, 79.7738, 358.0241},
{-2674.4983, 855.9325, 76.2734, 179.7438},
{-2643.1992, 867.8671, 76.2734, 40.6225},
{-2661.2012, 886.7200, 76.2734, 88.5630},
{-2663.2822, 905.8585, 79.6494, 183.5039}
};
new Float:gworkersSP[ 3 ][ 4 ] = {
{-2111.2927, 158.3477, 35.0792, 357.9431},
{-2083.7773, 250.4871, 36.0166, 92.4683},
{-2089.6646, 166.0994, 35.0547, 88.3949}
};
new Float:gfarmersSP[ 5 ][ 4 ] = {
{-688.1036, 943.9858, 13.6328, 359.4665},
{-706.4260, 941.5879, 12.4349, 358.5142},
{-695.2668, 971.3777, 12.2779, 90.2984},
{-694.6823, 960.9451, 12.2548, 84.0317},
{-669.0806, 944.6993, 12.1328, 1.6008}
};
new Float:gmedicsSP[ 3 ][ 4 ] = {
{-2675.1758, 632.7332, 14.4531, 169.8774},
{-2708.3462, 591.6735, 14.4531, 294.8752},
{-2621.5002, 607.8930, 14.4531, 89.0366}
};
new Float:gfiremenSP[ 3 ][ 4 ] = {
{-2026.9349, 67.0510, 28.6916, 263.2600},
{-2025.0702, 79.8378, 28.2268, 266.8751},
{-2025.1985, 88.4072, 28.2534, 270.3218}
};
new Float:gtraidsSP[ 3 ][ 4 ] = {
{-2187.9766, 642.0545, 49.4375, 89.5823},
{-2201.1045, 614.2569, 35.1641, 182.2515},
{-2175.0996, 634.8960, 49.4375, 57.4501}
};
forward SaveToFile(filename[], text[]);
public SaveToFile(filename[],text[])
{
#if SaveLogs == true
new File:Suffile;
new filepath[256];
new string[256];
new year,month,day;
new hour,minute,second;
getdate(year,month,day);
gettime(hour,minute,second);
format(filepath,sizeof(filepath),\"WorldSU/%s.txt\",filename);
Suffile = fopen(filepath,io_append);
format(string,sizeof(string),\"[%02d/%02d/%02d | %02d:%02d:%02d] %s\\r\\n\",day,month,year,hour,minute,second,text);
fwrite(Suffile,string);
fclose(Suffile);
#endif
return 1;
}
////////////////////////////////////////////
//------------------------------------------------------------------------------
main()
{
print(\"\\n----------------------------------\");
print(\" World Stunting V1.3\\n Loading....\\n.....\\n Loaded \\n Loaded Successfully \");
print(\"----------------------------------\\n\");
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
//------------------------------------------------------------------------------
public OnPlayerConnect(playerid)
{
new pname[MAX_PLAYER_NAME];
new str2[50];
Voted[playerid] = 0;
PlayerData[playerid][AFKstatus] = 0;
gActivePlayers[playerid]++;
gLastGaveCash[playerid] = GetTickCount();
format(str2, sizeof(str2), \"~r~Welcome~n~~w~ %s\", pname);
GameTextForPlayer(playerid,str2,1000,0);
#if defined joinmes
new string[180],str[128];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), \"***{66CC66}%s{00FFFF}(%d){6633CC} has {FFFFFF}joined the Server\",pname,playerid);
SendClientMessageToAll(green, string);
format(str, sizeof(str), \"Welcome{FF00CC} %s {339900}In Our Server ,{3300CC} Enjoy You\'r Stay !\", pname);
SendClientMessage(playerid,COLOR_ORANGE, str);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, \"{6633CC}Server Rules\", \"{66CC66}NO HACKS!\\nRespect Players And Staff\\nIgnorance Towards The Staff Will Result In A Ban\\nDo Not Ask Staff To Do Things For You!\\nConsider Yourself Warned!\", \"I Agree\", \"I Disagree\");
#endif
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
SetTimer(\"settime\",1000,true);
Date = TextDrawCreate(547.000000,11.000000,\"--\");
TextDrawFont(Date,3);
TextDrawLetterSize(Date,0.399999,1.600000);
TextDrawColor(Date,0xffffffff);
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Textdraw2 = TextDrawCreate(500.000000,15.000000,\"~r~Scripted_By_Sufyan\");
TextDrawTextSize(Textdraw2,-1.000000,150.000000);
TextDrawAlignment(Textdraw2,0);
TextDrawBackgroundColor(Textdraw2,0x0000ff33);
TextDrawFont(Textdraw2,0);
TextDrawLetterSize(Textdraw2,0.399999,0.800000);
TextDrawColor(Textdraw2,0xFFFF00AA);
TextDrawSetOutline(Textdraw2,1);
TextDrawSetProportional(Textdraw2,1);
TextDrawShowForPlayer(playerid, Text:Textdraw2);
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Textdraw1 = TextDrawCreate(200.000000,420.000000,\"www.firclan.smfnew.com\");
TextDrawTextSize(Textdraw1,0.620000, 1.900000);
TextDrawAlignment(Textdraw1,0);
TextDrawBackgroundColor(Textdraw1,0x33AA33AA);
TextDrawFont(Textdraw1,1);
TextDrawLetterSize(Textdraw1,0.899999,2.699999);
TextDrawColor(Textdraw1,255);
TextDrawSetOutline(Textdraw1,1);
TextDrawSetProportional(Textdraw1,1);
TextDrawShowForPlayer(playerid, Text:Textdraw1);
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Textdraw0 = TextDrawCreate(3.000000,344.000000,\"w o r l d s t u n t i n g v1.3\");
TextDrawUseBox(Textdraw0,1);
TextDrawBoxColor(Textdraw0,0x000000ff);
TextDrawTextSize(Textdraw0,-1.000000,146.000000);
TextDrawAlignment(Textdraw0,0);
TextDrawBackgroundColor(Textdraw0,0x0000ff33);
TextDrawFont(Textdraw0,3);
TextDrawLetterSize(Textdraw0,0.299999,0.700000);
TextDrawColor(Textdraw0,0xffffffff);
TextDrawSetOutline(Textdraw0,1);
TextDrawSetProportional(Textdraw0,1);
TextDrawShowForPlayer(playerid, Text:Textdraw0);
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
new playerfile[100];
if(dini_Int(playerfile, \"Banned\") == 1)
{
new string1[126];
format(string1, sizeof(string1), \"%s has been kicked for ban evade .\", pname);
SendClientMessageToAll(red, string1);
}
return 1;
}
//------------------------------------------------------------------------------
public SendMSG()
{
SendClientMessageToAll(COLOR_YELLOW, RandomMSG[random(sizeof(RandomMSG))]);
return 1;
}
//-----------------------Repaired & Fixed-----------------------------------------------
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys == KEY_SUBMISSION)
{
if(IsPlayerInAnyVehicle(playerid))
{
{
SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid,COLOR_BLUE,\"Your vehicle has been Fixed & Repair\");
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
}
}
}
//++++++++++++++++++++++++++ Nitrox +++++++++++++++++++++++++++++++++++++++++++++
if (PRESSED(KEY_FIRE))
{
new
vehicleid = GetPlayerVehicleID(playerid);
if (vehicleid)
{
AddVehicleComponent(vehicleid, 1010);
}
}
return 1;
}
//------------------------------------------------------------------------------
public OnPlayerDisconnect(playerid, reason)
{
PlayerData[playerid][AFKstatus] = 0;
TextDrawHideForPlayer(playerid, Date);
kills[playerid] = 0;
deaths[playerid] = 0;
level[playerid] = 0;
logged[playerid] = 0;
muted[playerid] = 0;
#if defined leavemes
new string[180], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), \"***{66CC66}%s{00FFFF}(%d){6633CC} has {FFFFFF}left the Server.\",pname,playerid);
SendClientMessageToAll(green, string);
#endif
return 1;
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//------------------------------------------------------------------------------
public MessageToAdmins(color, const string[])
{
for(new i; i < MAX_PLAYERS; i++)
{
if(level >= 1)
{
SendClientMessage(i, yellow, string);
}
}
return 1;
}
//------------------------------------------------------------------------------
public OnPlayerText(playerid, text[])
{
{
SetPlayerChatBubble(playerid, text, 0x99FF00AA, 100.0, 10000);
}
if (PlayerData[playerid][AFKstatus] == 1)
{
SendClientMessage(playerid, COLOUR_RED, \"You need to be /back to use the chatbox.\");
return 0;
}
else if (PlayerData[playerid][AFKstatus] == 0)
{
return 1;
}
{
// Recolour the text
return 1;
}
}
public OnPlayerSpawn(playerid)
{
new rand = random( 5 );
SetPlayerInterior(playerid,0);
TogglePlayerClock(playerid,1);
TextDrawShowForPlayer(playerid, Date);
switch(gTeam[playerid])
{
case TEAM_COPS: {
SetPlayerPos(playerid,gcopsSP[rand][0],gcopsSP[rand][1],gcopsSP[rand][2]);
SetPlayerFacingAngle(playerid,gcopsSP[rand][3]);
}
case TEAM_ARMY: {
SetPlayerPos(playerid,garmySP[rand][0],garmySP[rand][1],garmySP[rand][2]);
SetPlayerFacingAngle(playerid,garmySP[rand][3]);
}
case TEAM_RICH: {
SetPlayerPos(playerid,grichSP[rand][0],grichSP[rand][1],grichSP[rand][2]);
SetPlayerFacingAngle(playerid,grichSP[rand][3]);
}
case TEAM_WORKERS: {
SetPlayerPos(playerid,gworkersSP[rand][0],gworkersSP[rand][1],gworkersSP[rand][2]);
SetPlayerFacingAngle(playerid,gworkersSP[rand][3]);
}
case TEAM_FARMERS: {
SetPlayerPos(playerid,gfarmersSP[rand][0],gfarmersSP[rand][1],gfarmersSP[rand][2]);
SetPlayerFacingAngle(playerid,gfarmersSP[rand][3]);
}
case TEAM_MEDICS: {
SetPlayerPos(playerid,gmedicsSP[rand][0],gmedicsSP[rand][1],gmedicsSP[rand][2]);
SetPlayerFacingAngle(playerid,gmedicsSP[rand][3]);
}
case TEAM_FIREMEN: {
SetPlayerPos(playerid,gfiremenSP[rand][0],gfiremenSP[rand][1],gfiremenSP[rand][2]);
SetPlayerFacingAngle(playerid,gfiremenSP[rand][3]);
}
case TEAM_TRAIDS: {
SetPlayerPos(playerid,gtraidsSP[rand][0],gtraidsSP[rand][1],gtraidsSP[rand][2]);
SetPlayerFacingAngle(playerid,gtraidsSP[rand][3]);
}
}
if (Name[playerid] == 1)
{
TextDrawShowForPlayer(playerid, TextdrawName);//Name
}
return 1;
}
//----------------------Scores--------------------------------------------------
public OnPlayerDeath(playerid, killerid, reason)
{
GameTextForPlayer(playerid,\"~w~wasted\",2000,2);
if(killerid == INVALID_PLAYER_ID) {
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
} else {
SendDeathMessage(killerid,playerid,reason);
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
GivePlayerMoney(killerid,2000);
}
return 1;
}
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
COMMAND:rcmds(playerid, params[])
{
SendClientMessage(playerid,red,\"================================================\");
SendClientMessage(playerid,red,\"Rcon Commands\");
SendClientMessage(playerid,red,\"================================================\");
SendClientMessage(playerid,red,\" /gotocar , /spec , /specoff , /slap , /drop , /get\");
SendClientMessage(playerid,red,\" /gmx , \");
return 1;
}
COMMAND:gotocar(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
if(!strlen(params))
{
SendClientMessage(playerid,COLOR_YELLOW,\"USAGE: /gotocar [vehicleid]\");
return 1;
}
new player, string[128];
player = strval(params);
new Float:x, Float:y, Float:z; GetVehiclePos(player,x,y,z);
SetPlayerVirtualWorld(playerid,GetVehicleVirtualWorld(player));
if(GetPlayerState(playerid) == 2)
{
SetVehiclePos(GetPlayerVehicleID(playerid),x+2,y,z);
SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), GetVehicleVirtualWorld(player) );
}
else
{
SetPlayerPos(playerid,x+1,y,z);
}
format(string,sizeof(string),\"You have teleported to vehicle id %d\", player);
SendClientMessage(playerid,COLOR_BLUE,string);
return 1;
}
else
{
SendClientMessage(playerid,COLOR_RED,\" You are not authorized to use that command!\");
return 1;
}
}
COMMAND:spec(playerid,params[])
{
new pid;
if(sscanf(params, \"u\", pid)) return SendClientMessage(playerid, 0xFF0000AA, \"Command Usage: /spec [playerid]\");
if(IsPlayerConnected(pid))
{
if(IsPlayerAdmin(playerid))
{
if(IsPlayerInAnyVehicle(pid)){
PlayerSpectatePlayer(playerid, 1);
PlayerSpectateVehicle(playerid,GetPlayerVehicleID(pid), SPECTATE_MODE_NORMAL);
} else {
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, pid, SPECTATE_MODE_NORMAL);
}
SendClientMessage(playerid, orange, \"You are now spectating, To stop spectating type /specoff\");
} else SendClientMessage(playerid, red, \"Error: You must be a higher level administrator to use that command.\");
} else SendClientMessage(playerid, red, \"Error: That player is not connected.\");
return 1;
}
COMMAND:slap(playerid,params[])
{
new pid;
if(sscanf(params, \"u\", pid)) return SendClientMessage(playerid, 0xFF0000AA, \"Command Usage: /slap [playerid]\");
if(IsPlayerAdmin(playerid))
{
if(IsPlayerConnected(pid))
{
new Float:H;
GetPlayerPos(pid,X, Y, Z);
SetPlayerPos(pid,X, Y, Z + 10);
GetPlayerHealth(pid, H);
SetPlayerHealth(pid, H - 10);
new adminname[MAX_PLAYER_NAME], paramname[MAX_PLAYER_NAME], string[180];
GetPlayerName(pid, paramname, sizeof(paramname));
GetPlayerName(playerid, adminname, sizeof(adminname));
format(string, sizeof(string), \"Admin %s has slapped %s .\", adminname, paramname);
SendClientMessageToAll(red, string);
} else SendClientMessage(playerid, red, \"Invalid Player ID !\");
}
return 1;
}
COMMAND:drop(playerid,params[])
{
new pid;
if(sscanf(params, \"u\", pid)) return SendClientMessage(playerid, 0xFF0000AA, \"Command Usage: /Drop [playerid]\");
if(IsPlayerAdmin(playerid))
{
if(IsPlayerConnected(pid))
{
new Float:H;
GetPlayerPos(pid,X, Y, Z);
SetPlayerPos(pid,X, Y, Z + 60);
GetPlayerHealth(pid, H);
SetPlayerHealth(pid, H - 0);
new adminname[MAX_PLAYER_NAME], paramname[MAX_PLAYER_NAME], string[180];
GetPlayerName(pid, paramname, sizeof(paramname));
GetPlayerName(playerid, adminname, sizeof(adminname));
format(string, sizeof(string), \"Admin %s has dropped %s.\", adminname, paramname);
SendClientMessageToAll(red, string);
} else SendClientMessage(playerid, red, \"That player is not online.\");
}
return 1;
}
COMMAND:kill(playerid, params[])
{
SetPlayerHealth(playerid, 0.0);
return 1;
}
COMMAND:get(playerid,params[])
{
new pid;
if(sscanf(params, \"u\", pid)) return SendClientMessage(playerid, 0xFF0000AA, \"Command Usage: /Get [playerid]\");
if(IsPlayerAdmin(playerid))
{
if(IsPlayerConnected(pid))
{
GetPlayerPos(playerid,X, Y, Z);
SetPlayerPos(pid,X, Y, Z);
new adminname[MAX_PLAYER_NAME], string[180];
GetPlayerName(playerid, adminname, sizeof(adminname));
format(string, sizeof(string), \"Admin %s has teleported you.\", adminname);
SendClientMessage(pid, yellow, string);
} else SendClientMessage(playerid, red, \"That player is not online.\");
} else SendClientMessage(playerid, red, \"Error: You must be a higher level administrator to use that command.\");
return 1;
}
COMMAND:specoff(playerid,params[])
{
#pragma unused params
TogglePlayerSpectating(playerid, 0);
return 1;
}
// Eiffel Tower Lift
COMMAND:lift1up(playerid, params[])
{
MoveObject(lift1,948.794312, 2439.689941, 42.391544,10.0);
return 1;
}
COMMAND:lift1down(playerid, params[])
{
MoveObject(lift1,948.788574, 2439.683350, 9.874555,5.0);
return 1;
}
COMMAND:lift2up(playerid, params[])
{
MoveObject(lift2,957.270447, 2432.764160, 81.292969,10.0);
return 1;
}
COMMAND:lift2down(playerid, params[])
{
MoveObject(lift2,957.282593, 2432.806641, 42.432281,5.0);
return 1;
}
COMMAND:lift3up(playerid, params[])
{
MoveObject(lift3,956.364319, 2442.081299, 198.766342,10.0);
return 1;
}
COMMAND:lift3down(playerid, params[])
{
MoveObject(lift3,957.160950, 2442.099365, 81.161102,5.0);
return 1;
}
////====================Here Eiffel Over============================================
COMMAND:cmds(playerid, params[]) {
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, \"{6633CC}Player Commands\", \"{33FF00}Cars CMDS:\\n{FF9933}/car , /mod , /nrg , /neonb , /neong , /neonp , /neonw, /neony\\n \\n{33FF00}Other CMDS:\\n{FF9933} /me , /credits , /cc ,/site , /votekick, /vote\\n \\n /tele , /teles , /para , /shop \\n \\n /afk , /brb , /back\",\"OK\",\"\");
return 1;
}
COMMAND:tele(playerid, params[]) {
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, \"{6633CC}Server Teleports\", \"{33FF00}StuntAreas:\\n\\n{FF9933} /sfa , /city , /city2 , /mc , /aba , /driftcity \\n \\n {33FF00}OtherStunts:\\n\\n{FF9933} /upsidedown ,/waytodeath,/apark /monstercrash \\n \\n /apark , /monstercrash , /drag , /stunt \\n \\n /ultrastunt , /rollercoaster , /lsa ,/bulildingjump\\n\\n{33FF00}MiniGames:\\n\\n{FF9933}/minigun ,/minigun2 ,/dm ,/shipwar , /exitmg\\n\\n{33FF00}OtherStuff:\\n\\n{FF9933}/eiffel /poolparty\", \"Ok\",\"\");
SendClientMessage(playerid,red,\"Also Use /teles\");
return 1;
}
CMD:teles( playerid , params[ ] )
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, \"{6633CC}Server Teleports\",\"{33FF00}Drift Area:\\n\\n{FF9933} /drift1 - 8 ,\\n{33FF00}MiniGame:\\n{FF9933}/piratewar , /minigun3 \\n\\n{33FF00}Others:\\n{FF9933} /poolparty , /lstower , /annoying , /jump1 , /jump2 \\n\\n /skydive , /hugejump \\n \\n \\n{33FFCC} Enjoy Our Server , Have a F.U.N !\\n\\n {33FF00}Credits To Sufyan\",\"ok\",\"\");
SendClientMessage(playerid,red,\"Also Use /tele \");
return 1;
}
// Dont Delete Credits .... Please Dont Delete ...
COMMAND:credits(playerid, params[]) {
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, \"{33FFCC}GameMode Credits\",\"{33FF00}\\nThanks To Sufyan Creating This Game Mode \\n Thanks to Sunmil Testing This Game Mode \\n Thanks to Singam Creating Forum and Testing & Helping\\nThanks To Mubbarak for Helping\\n Thanks To Willian Testing GameMode\\nThanks to [FIR]EVIL_BOSS helping and Testing GameMode \\n\\n{FF9933}Special Thanks To Y_Less For SScanf \\n Thanks To Zeex For ZCMD \\n Thanks To Incognito For IRC Plugin & Streamer Plugin\",\"Ok\",\"\");
return 1;
}
/*COMMAND:shop(playerid, params[]) {
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, \"{6633CC}SHOP\", \"{66CC66}/m4 /deagle\\n /combat \\n/heal /armour\\n\", \"OK\", \"OK\");
SendClientMessage(playerid,0xFFFF00AA,\"+++++++++++++++++++++++++++++++++++++\");
SendClientMessage(playerid,0xFF0000AA,\" Shop \");
SendClientMessage(playerid,0xFFFF00AA,\"+++++++++++++++++++++++++++++++++++++\");
SendClientMessage(playerid, 0xAA3333AA, \" /m4 , /deagle , /combat , /heal /armour\");
return 1;
}*/
COMMAND:getmoney(playerid, params[])
{
GivePlayerMoney(playerid,2000);
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, \"{33FFCC} Emergency !\",\"{33FF00} Server Will be Given you Some Money\",\"I Accept\",\"Cancel\");
return 1;
}
//===================================================================================================================
// Commands
//===================================================================================================================
COMMAND:gmx(playerid,params[]) {
if(IsPlayerAdmin(playerid))
{
SendRconCommand(\"gmx\");
GameTextForAll(\"~w~ Server Restarting ~n~ ~y~ please wait..\",3500,1);
}
return 1;
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
COMMAND:drift2(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),1995.8274,2243.7427,25.6410);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,1995.8274,2243.7427,25.6410);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You have been Teleported to Drift.\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Drift. (/drift2)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
// // //
COMMAND:drift3(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),-2408.3521,-599.5757,132.6484);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,-2408.3521,-599.5757,132.6484);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You have been Teleported to Drift.\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Drift. (/drift3)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
// // //
COMMAND:drift4(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),2235.1140,1963.4467,31.7797);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,2235.1140,1963.4467,31.7797);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You have been Teleported to Drift.\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Drift. (/drift4)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:drift5(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),2090.1851,2430.9177,51.2371);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,2090.1851,2430.9177,51.2371);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You have been Teleported to Drift.\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Drift. (/drift5)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:drift6(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),2276.4070,1387.4423,42.8203);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,2276.4070,1387.4423,42.8203);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You have been Teleported to Drift.\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Drift. (/drift6)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:stunt(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),-188.7413,3.7169,3.1094);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,-188.7413,3.7169,3.1094);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You have been Teleported to Stunt Arena.\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Stunting. (/stunt)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:jump1(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),-2836.2173,1368.1786,102.8800);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,-2836.2173,1368.1786,102.8800);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You have been Teleported to Jump.\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Jump. (/jump1)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:poolparty(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),238.1064,-1202.2336,76.1403);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,238.1064,-1202.2336,76.1403);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You have been Teleported to Pool Party.\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Pool Party. (/poolparty)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
// ++++++++++++
COMMAND:site(playerid, params[])
{ SendClientMessage(playerid,0xFFFF00AA,\"Our Website is www.firclan.smfnew.com please visit it And you also Get More Info About This Server\");
GameTextForPlayer(playerid,\"~n~~n~~n~~n~~n~~n~~n~~w~www.firclan.smfnew.com\",3000,5);
return 1;
}
//++++++++++++++++++++++++++++++++++++
/*COMMAND:deagle(playerid, params[])
if (GetPlayerMoney(playerid) >= 500)
{
GivePlayerWeapon(playerid,24,99);
GivePlayerMoney(playerid,-500);
SendClientMessage(playerid,green,\"Thank You For Bought a Weapon\");
return 1;
}else
{
SendClientMessage(playerid,0xFF0000AA,\"You Dont Have Enough Money\");
return 1;
}
COMMAND:m4(playerid, params[])
if (GetPlayerMoney(playerid) >= 700)
{
GivePlayerWeapon(playerid,31,99);
GivePlayerMoney(playerid,-700);
SendClientMessage(playerid,green,\"Thank You For Bought a Weapon\");
return 1;
}else
{
SendClientMessage(playerid,0xFF0000AA,\"You Dont Have Enough Money\");
return 1;
}
COMMAND:combat(playerid, params[])
if (GetPlayerMoney(playerid) >= 1000)
{
GivePlayerWeapon(playerid,27,99);
GivePlayerMoney(playerid,-1000);
SendClientMessage(playerid,green,\"Thank You For Bought a Weapon\");
return 1;
}else
{
SendClientMessage(playerid,0xFF0000AA,\"You Dont Have Enough Money\");
return 1;
}
COMMAND:heal(playerid, params[])
if (GetPlayerMoney(playerid) >= 100)
{
SetPlayerHealth(playerid,100);
GivePlayerMoney(playerid,-100);
SendClientMessage(playerid,green,\"You Have Been Healed in 100$$\");
return 1;
}else
{
SendClientMessage(playerid,0xFF0000AA,\"You Dont Have Enough Money\");
return 1;
}
COMMAND:armour(playerid, params[])
if (GetPlayerMoney(playerid) >= 200)
{
SetPlayerArmour(playerid,100);
GivePlayerMoney(playerid,-200);
SendClientMessage(playerid,green,\"You Have Been Given Armour in 200$$\");
return 1;
}else
{
SendClientMessage(playerid,0xFF0000AA,\"You Dont Have Enough Money\");
return 1;
}*/
COMMAND:para(playerid, params[])
if (GetPlayerMoney(playerid) >= 150)
{
GivePlayerWeapon(playerid,46,1);
GivePlayerMoney(playerid,-150);
SendClientMessage(playerid,green,\"You Have Been Given Parachute !\");
return 1;
}else
{
SendClientMessage(playerid,0xFF0000AA,\"You Dont Have Enough Money\");
return 1;
}
//=============================================================================================
COMMAND:skydive(playerid, params[])
{
{
if (GetPlayerMoney(playerid) >= 1000)
{
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s has gone to Skydiving. (/skydive)\", name);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
GivePlayerWeapon(playerid,46,1);
GivePlayerMoney(playerid,-1000);
GetPlayerPos(playerid,X, Y, Z);
SetPlayerPos(playerid,X, Y, Z + 650);
SetPlayerFacingAngle(playerid,221.976);
GameTextForPlayer(playerid,\"~b~Enjoy !\",2000,3);
}
else
{
SendClientMessage(playerid,0xFF0000AA,\"You Dont Have Enough Money\");
}
return 1;
}
}
// //
//Flip Command
COMMAND:flip(playerid, params[])
{
if(IsPlayerInAnyVehicle(playerid))
{
new Float:PX, Float:PY, Float:PZ, Float:PA;
GetPlayerPos(playerid, PX, PY, PZ);
GetVehicleZAngle(GetPlayerVehicleID(playerid), PA);
SetVehiclePos(GetPlayerVehicleID(playerid), PX, PY, PZ+1);
SetVehicleZAngle(GetPlayerVehicleID(playerid), PA);
SendClientMessage(playerid, COLOR_BLUE,\"Vehicle Fliped!\");
PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
}
else
{
SendClientMessage(playerid, COLOR_RED,\"You can\'t flip your player.\");
}
return 1;
}
// Personal NRG
COMMAND:nrg(playerid, params[])
{
if( PVeh[playerid] > 0 )
{
if(GetPlayerVehicleID(playerid) != PVeh[playerid])
{
if(IsPlayerInAnyVehicle(playerid))
{
RemovePlayerFromVehicle(playerid);
}
new Float: Ang;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
GetPlayerName(playerid, Name, sizeof( Name ));
PutPlayerInVehicle(playerid, PVeh[playerid], 0);
SetVehiclePos(PVeh[playerid], X, Y, Z);
SetVehicleZAngle(PVeh[playerid], Ang);
SetVehicleHealth(PVeh[playerid], 1000.0);
LinkVehicleToInterior(PVeh[playerid], GetPlayerInterior(playerid));
SendClientMessage(playerid,COLOR_GREEN, \"personal nrg called.\");
PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
}
else
{
SendClientMessage(playerid,COLOR_RED, \"You are already on your personal nrg.\");
}
}
else
{
if(IsPlayerInAnyVehicle(playerid))
{
RemovePlayerFromVehicle(playerid);
}
new Float: Ang;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
GetPlayerName(playerid, Name, sizeof( Name ));
PVeh[playerid] = CreateVehicle(522, X, Y , Z, Ang, 75,3, 5000000);
PutPlayerInVehicle(playerid, PVeh[playerid], 0);
LinkVehicleToInterior(PVeh[playerid], GetPlayerInterior(playerid));
printf(\"personal nrg created for %s.\", Name);
SendClientMessage(playerid,COLOR_RED, \"personal nrg created.\");
PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
SetVehicleParamsForPlayer(PVeh[playerid], playerid, 0, 0);
for(new i=0; i <= MAX_PLAYERS; i++)
{
if ( IsPlayerConnected(i) )
{
if ( i != playerid )
{
SetVehicleParamsForPlayer(PVeh[playerid], i, 0, 1);
}
}
}
}
return 1;
}
/// AFK Commands
COMMAND:afk(playerid, params[])
{
new string[256];
if (PlayerData[playerid][AFKstatus] == 1)
{
SendClientMessage(playerid, COLOUR_RED, \"ERROR: Your status is already AFK/BRB!\");
return 1;
}
else if (PlayerData[playerid][AFKstatus] == 0)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), \"** %s is away from keyboard!\", pname);
SendClientMessageToAll(COLOUR_YELLOW, string);
TogglePlayerControllable(playerid,0);
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(playerid) + 50);
PlayerData[playerid][AFKstatus] = 1;
return 1;
}
return 0;
}
COMMAND:brb(playerid, params[])
{
new string[256];
if (PlayerData[playerid][AFKstatus] == 1)
{
SendClientMessage(playerid, COLOUR_RED, \"ERROR: Your status is already AFK/BRB!\");
return 1;
}
else if (PlayerData[playerid][AFKstatus] == 0)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), \"** %s will be right back!\", pname);
SendClientMessageToAll(COLOUR_YELLOW, string);
TogglePlayerControllable(playerid,0);
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(playerid) + 50);
PlayerData[playerid][AFKstatus] = 1;
return 1;
}
return 0;
}
COMMAND:back(playerid, params[])
{
new string [256];
if (PlayerData[playerid][AFKstatus] == 0)
{
SendClientMessage(playerid, COLOUR_RED, \"ERROR: Your status is already BACK!\");
return 1;
}
else if (PlayerData[playerid][AFKstatus] == 1)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), \"** %s has returned!\", pname);
SendClientMessageToAll(COLOUR_YELLOW, string);
TogglePlayerControllable(playerid,1);
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(playerid) - 50);
PlayerData[playerid][AFKstatus] = 0;
return 1;
}
return 0;
}
/// Teleports
COMMAND:exitmg(playerid, params[])
{
{
SpawnPlayer(playerid);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, green, \"You Left the Mini Game!\");
}
return 1;
}
COMMAND:hugejump(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),-2051.5952,-273.0008,35.3203);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,-2051.5952,-273.0008,35.3203);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You are at Huge Jump! Have Fun!\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Huge Jump. (/hugejump)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:driftcity(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),-2202.8438,-4165.2114,16.4755);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,-2202.8438,-4165.2114,16.4755);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You are at Drift City!\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Drift City. (/driftcity)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:lstower(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),1537.1813,-1364.6439,1882.5000);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,1537.1813,-1364.6439,1882.5000);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You are at LS Tower!\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Los Santos Tower. (/lstower)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:waytodeath(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),1013.4863,2784.7273,1074.5000);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,1013.4863,2784.7273,1074.5000);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You are at Way to Death!\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Way To Death. (/waytodeath)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:drag(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),1031.1125,-2297.4236,12.8004);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,1031.1125,-2297.4236,12.8004);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You are at Drag Race!\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Drag. (/drag)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:monstercrash(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),-2383.9839,2909.5325,362.3510);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,-2383.9839,2909.5325,362.3510);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You are at Monster Crash!\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Monster Crash. (/monstercrash)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:upsidedown(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),391.1825,-82.5999,558.1525);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,391.1825,-82.5999,558.1525);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You are at Upside Down!\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Up Side Down. (/upsidedown)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:apark(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),284.4926, -1863.2415, 2.8927);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,284.4926, -1863.2415, 2.8927);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You are at Aqua Park!\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Park. (/apark)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:aba(playerid, params[])
{
SendClientMessage(playerid,red,\"This Stunt has been deleted.\");
}
/*COMMAND:aba(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),404.49334716797,2461.439453125,15.5);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,404.49334716797,2461.439453125,15.5);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You are at Abandoned Airport!\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Abandoned Airport. (/aba)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}*/
COMMAND:sfa(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),-1524.8004,-77.4487,14.1484);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,-1524.8004,-77.4487,14.1484);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You are at San Fierro Airport!\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to San Fierro Airport. (/sfa)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:lsa(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),1646.0890,-2444.3279,13.5547);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,1646.0890,-2444.3279,13.5547);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You are at Los Santos Airport!\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Los Santos Airport. (/lsa)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:drift1(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),-308.3555,1527.1465,75.3594);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,-350.0350,1512.0911,79.5141);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You are at drift 1!\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Drift. (/drift1)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
CMD:drift7( playerid, paramas[ ] )
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),835.6555,-878.2632,68.0216);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,835.6555,-878.2632,68.0216);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You are at drift 7!\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Drift. (/drift7)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
CMD:drift8( playerid, paramas[ ] )
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),1342.4817,-1576.3361,13.0962);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,1342.4817,-1576.3361,13.0962);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You are at drift 8!\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Drift. (/drift8)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:city(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),837.2653,-1893.0802,12.8672);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,837.2653,-1893.0802,12.8672);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You are at City !\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to City. (/city)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:annoying(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),2184.6436,-2612.5144,13.5469);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,2184.6436,-2612.5144,13.5469);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You have been teleported to Annoying Race!\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Annoying Race. (/annoying)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:shop(playerid, params[])
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, \"{000FFF}What is it that you want?\", \"{33CC99}Sprunk ($1)\\n{FF0000}Beer ($2)\\n{993300}Wine ($3)\\n{FF0033}Deagle ($500)\\n{FF00CC}Combat ($700)\\n{330099}M4($1000)\\n{66FF00}Health($500)\\n{660000}Armour($1000)\", \"Purchase\", \"Cancel\");
return 1;
}
COMMAND:mc(playerid, params[])
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid),0);
SetVehiclePos(GetPlayerVehicleID(playerid),-2342.8923,-1664.8397,483.7031);
SetVehicleZAngle(GetPlayerVehicleID(playerid),221.976);
}
else
{
SetPlayerPos(playerid,-2342.8923,-1664.8397,483.7031);
SetPlayerFacingAngle(playerid,221.976);
}
SendClientMessage(playerid,COLOR_BLUE,\"You have been teleported to Chilliad!\");
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to Mount Chilliad. (/mc)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
return 1;
}
COMMAND:shipwar(playerid, params[])
{
ResetPlayerWeapons(playerid);
TogglePlayerControllable(playerid, 1);
new ShipMadness[128], playerName[MAX_PLAYER_NAME], RandomSpawn = random(9);
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
if (RandomSpawn == 0)
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2473.3635,1552.3779,33.2273);
SetPlayerFacingAngle(playerid, 162.4520);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 1)
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2464.5215,1531.9247,17.3281);
SetPlayerFacingAngle(playerid, 356.1172);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 2)
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2460.7542,1551.8220,23.1406);
SetPlayerFacingAngle(playerid, 179.0821);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 3)
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2444.2595,1530.2435,20.2344);
SetPlayerFacingAngle(playerid, 340.1136);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 4)
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2401.1440,1532.8340,26.0469);
SetPlayerFacingAngle(playerid, 17.7140);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 5)
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2374.3948,1535.5518,26.0469);
SetPlayerFacingAngle(playerid, 57.7976);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 6)
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2359.6692,1561.0190,26.0469);
SetPlayerFacingAngle(playerid, 162.1386);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn == 7)
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2382.4871,1547.8801,10.8281);
SetPlayerFacingAngle(playerid, 108.2448);
SetCameraBehindPlayer(playerid);
}
if (RandomSpawn ==
{
InCar[playerid] = false;
SetPlayerPos(playerid, -2422.0405,1551.3163,7.9219);
SetPlayerFacingAngle(playerid, 143.3385);
SetCameraBehindPlayer(playerid);
}
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 24, 47);
GivePlayerWeapon(playerid, 26, 44);
SetPlayerInterior(playerid, 0);
SendClientMessage(playerid, COLOR_PURPLE, \"You have been teleportated to -ShipWar-\");
SendClientMessage(playerid, COLOR_RED, \"SHOOTING WITH WEAPONS OUTSIDE -SHIPWAR- WIL RESULT IN KICK OR BAN!!!\");
format(ShipMadness, sizeof(ShipMadness), \"%s has teleported to /ShipWar\", playerName);
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to MiniGame. (/shipwar)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(ReceiveInfo == true)
{
SendClientMessage(i, COLOR_GREY, ShipMadness);
}
}
}
return 1;
}
COMMAND:minigun(playerid, params[])
{
ResetPlayerWeapons(playerid);
new MinigunMadness[128], playerName[MAX_PLAYER_NAME], RandomSpawn = random(6);
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
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_GREEN, \"You have been teleportated to -Minigun1-\");
SendClientMessage(playerid, COLOR_YELLOW, \"Do You Want To Exit Mini Game USE: /exitmg\");
SendClientMessage(playerid, COLOR_RED, \"SHOOTING WITH MINIGUN OUTSIDE -MINIGUN1- WILL RESULT ON KICK OR BAN!!!\");
format(MinigunMadness, sizeof(MinigunMadness), \"%s(%d) has gone to MiniGun. (/minigun1)\", playerName,playerid);
new string3[70];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string3, sizeof(string3), \"%s(%d) has gone to MiniGame. (/minigun)\", name,playerid);
SendClientMessageToAll(yellow, string3);
SaveToFile(\"Teleports\",string3);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(ReceiveInfo == true)
{
SendClientMessage(i, COLOR_GREY, MinigunMadness);
}
}
}
return 1;
}
/*
COMMAND:mod(playerid, params[])
{
#pragma unused params
new neon5 = CreateObject(18648,0,0,0,0,0,0,100.0);
new neon6 = CreateObject(18648,0,0,0,0,0,0,100.0);
SetVehicleNumberPlate(GetPlayerVehicleID(playerid), \"Sufyan\");
AttachObjectToVehicle(neon5, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(neon6,GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
return 1;
}*/
COMMAND:neonb(playerid, params[])
{
#pragma unused params
new neon5 = CreateObject(18648,0,0,0,0,0,0,100.0);
new neon6 = CreateObject(18648,0,0,0,0,0,0,100.0);
SetVehicleNumberPlate(GetPlayerVehicleID(playerid), \"Sufyan\");
if(IsPlayerInAnyVehicle(playerid))
{
AttachObjectToVehicle(neon5, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(neon6,GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
}
GameTextForPlayer(playerid,\"~b~Blue ~w~Neon Attach To Your Vehicle\",3000,1);
return 1;
}
COMMAND:neong(playerid, params[])
{
#pragma unused params
new neon7 = CreateObject(18649,0,0,0,0,0,0,100.0);
new neon8 = CreateObject(18649,0,0,0,0,0,0,100.0);
SetVehicleNumberPlate(GetPlayerVehicleID(playerid), \"Sufyan\");
if(IsPlayerInAnyVehicle(playerid))
{
AttachObjectToVehicle(neon7, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(neon8,GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
}
GameTextForPlayer(playerid,\"~g~Green ~w~Neon Attach To Your Vehicle\",3000,1);
return 1;
}
COMMAND:neony(playerid, params[])
{
#pragma unused params
new neon9 = CreateObject(18650,0,0,0,0,0,0,100.0);
new neon10 = CreateObject(18650,0,0,0,0,0,0,100.0);
SetVehicleNumberPlate(GetPlayerVehicleID(playerid), \"Sufyan\");
if(IsPlayerInAnyVehicle(playerid))
{
AttachObjectToVehicle(neon9, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(neon10,GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
}
GameTextForPlayer(playerid,\"~y~Yellow ~w~ Neon Attach To Your Vehicle\",3000,1);
return 1;
}
COMMAND:neonp(playerid, params[])
{
#pragma unused params
new neon11 = CreateObject(18651,0,0,0,0,0,0,100.0);
new neon12 = CreateObject(18651,0,0,0,0,0,0,100.0);
SetVehicleNumberPlate(GetPlayerVehicleID(playerid), \"Sufyan\");
if(IsPlayerInAnyVehicle(playerid))
{
AttachObjectToVehicle(neon11, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(neon12,GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
}
GameTextForPlayer(playerid,\"~p~Pink ~w~ Neon Attach To Your Vehicle\",3000,1);
return 1;
}
COMMAND:neonw(playerid, params[])
{
#pragma unused params
new neon13 = CreateObject(18652,0,0,0,0,0,0,100.0);
new neon14 = CreateObject(18652,0,0,0,0,0,0,100.0);
SetVehicleNumberPlate(GetPlayerVehicleID(playerid), \"Sufyan\");
if(IsPlayerInAnyVehicle(playerid))
{
AttachObjectToVehicle(neon13, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(neon14,GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
}
GameTextForPlayer(playerid,\"~w~White ~y~ Neon Attach To Your Vehicle\",3000,1);
return 1;
}
COMMAND:neon(playerid, params[])
{
#pragma unused params
new vehid = GetPlayerVehicleID(playerid);
new neon5 = CreateObject(18648,0,0,0,0,0,0,100.0);
new neon6 = CreateObject(18648,0,0,0,0,0,0,100.0);
SetVehicleNumberPlate(GetPlayerVehicleID(playerid), \"Sufyan\");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, ADMIN_RED, \"You must be in a vehicle to use this command!\");
else if(On[vehid] == 1)
{
SendClientMessage(playerid, COLOR_GREEN, \"Neon mod disabled!\");
DestroyObject(18648);
On[vehid] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GREEN, \"Neon mod enabled!\");
AttachObjectToVehicle(neon5, GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(neon6,GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
On[vehid] = 1;
}
return 1;
}
// Vehicle
new engine,lights,alarm,doors,bonnet,boot,objective;
COMMAND:startengine(playerid, params[]){
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID) {
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
}
return 1;
}
COMMAND:stopengine(playerid, params[]){
new vid = GetPlayerVehicleID(playerid);
if(vid != INVALID_VEHICLE_ID) {
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
}
return 1;
}
COMMAND:minigun2(playerid, params[])
{
ResetPlayerWeapons(playerid);
new MinigunMadness[128], playerName[MAX_PLAYER_NAME], RandomSpawn = random(6);
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
if (RandomSpawn == 0)
{
InCar[playerid] = false;
SetPlayerPos(playerid, 2389.3079,-2686.4307,1