more classes please help.
#3

sure

Quote:

public OnPlayerSpawn(playerid)
{
SendClientMessage(playerid, COLOR_YELLOW, "If You Dont Like Your Character press F4 And /kill!");
HideDraw(playerid);
SetPlayerInterior(playerid, 0);
TextDrawShowForPlayer(playerid, randommsg);
//LV MAP ICON
SetPlayerMapIcon(playerid, 0, 2019.5000, 1913.0396, 12.3114, 52, 0); // Bank
SetPlayerMapIcon(playerid, 5, 2287.0925, 2431.6145, 10.8203, 30, 0); // LVPD
SetPlayerMapIcon(playerid, 6, 1607.4465, 1816.1157, 10.8203, 22, 0); // Hospital
SetPlayerMapIcon(playerid, 7, 2412.5625, 1123.8337, 10.8203, 56, 0); // City Hall
SetPlayerMapIcon(playerid, 8, 2085.6697, 2074.0100, 11.0547, 12, 0); // RuNix's Dildos
SetPlayerMapIcon(playerid, 9, 2172.1233, 1398.1210, 11.0625, 55, 0); // Car Shop
SetPlayerMapIcon(playerid, 10, 2113.2854, 1333.5800, 10.8203, 49, 0); // BulletXT's Bar
SetPlayerMapIcon(playerid, 11, 2101.8979, 2257.3718, 11.0234, 45, 0); // Binco
SetPlayerMapIcon(playerid, 12, 2249.1479, 960.5301, 10.8130, 45, 0); // ZIP
SetPlayerMapIcon(playerid, 13, 2032.1550, 2162.4448, 10.8203, 8, 0); // Bomb Shop
SetPlayerMapIcon(playerid, 14, 2184.2126, 2295.6084, 10.8203, 45, 0); // SubUrban
SetPlayerMapIcon(playerid, 15, 2491.5000, 918.4912, 11.0234, 24, 0); // Drug Point
SetPlayerMapIcon(playerid, 42, 2019.3212,1007.7536,10.8203, 44, 0); // D4ragoni
SetPlayerMapIcon(playerid, 43, 2196.9517,1677.1399,12.3672, 25, 0); // Caligulas
SetPlayerMapIcon(playerid, 45,460.2683,-1502.9524,31.0257, 25, 0);
//LS MAP ICON
SetPlayerMapIcon(playerid, 16, 1122.7067,-2037.0416,69.8942, 24, 0); // Drug Point
SetPlayerMapIcon(playerid, 52, 1921.6742,-1787.5640,13.3906, 24, 0); //new atms bank
SetPlayerMapIcon(playerid, 17, 1857.1792,-1874.2761,13.4829, 8, 0); // Bomb Shop
SetPlayerMapIcon(playerid, 18, 2244.4128,-1665.5463,15.4766, 45, 0); // Binco
SetPlayerMapIcon(playerid, 19, 2309.8811,-1643.7646,14.8270, 49, 0); // Bar
SetPlayerMapIcon(playerid, 20, 1481.1427,-1771.6808,18.7958, 56, 0); // City Hall
SetPlayerMapIcon(playerid, 21, 1172.8318,-1323.2954,15.4001, 22, 0); // Hospital
SetPlayerMapIcon(playerid, 22, 1555.0673,-1675.6428,16.1953, 30, 0); // LSPD
SetPlayerMapIcon(playerid, 23, 1411.7141,-1700.0085,13.5395, 52, 0); // Bank
SetPlayerMapIcon(playerid, 24, 1703.9697,-1469.9948,13.5469, 55, 0); // Car Shop
SetPlayerMapIcon(playerid, 25, 499.6478,-1360.3167,16.3421, 45, 0); // SubUrban
SetPlayerMapIcon(playerid, 26, 822.3297,-1757.5181,13.6484, 45, 0); // SubUrban 2
SetPlayerMapIcon(playerid, 27, 2139.1853,-1743.2207,13.5524, 45, 0); // ZIP
//SF MAP ICON
SetPlayerMapIcon(playerid, 28, -2719.4172,-319.2030,7.8438, 24, 0); // Drug Point
SetPlayerMapIcon(playerid, 29, -2032.9038,161.4297,29.0461, 8, 0); // Bomb Shop
SetPlayerMapIcon(playerid, 30, -2655.0779,640.0289,14.4545, 22, 0); // Hospital
SetPlayerMapIcon(playerid, 31, -1605.4486,710.8713,13.8672, 30, 0); // SFPD
SetPlayerMapIcon(playerid, 32, -1581.2535,867.2552,7.6953, 52, 0); // Bank
SetPlayerMapIcon(playerid, 33, -1946.0483,273.3452,35.4739, 55, 0); // Car Shop
SetPlayerMapIcon(playerid, 34, -2490.9307,-142.7729,25.6172, 45, 0); // SubUrban
SetPlayerMapIcon(playerid, 35, -1881.1808,823.0976,35.1770, 45, 0); // ZIP
//ATM-uri
SetPlayerMapIcon(playerid, 1,2172.8428, 1416.7751, 11.0625, 52, 0); // ATM
SetPlayerMapIcon(playerid, 2,2110.5188, 2060.4219, 10.8203, 52, 0); // ATM
SetPlayerMapIcon(playerid, 3,2134.0115, 2379.3159, 10.8203, 52, 0); // ATM
SetPlayerMapIcon(playerid, 4,2455.5420, 1681.4117, 11.0234, 52, 0); // ATM
SetPlayerMapIcon(playerid, 36,-2635.9067,1398.5020,7.0938, 52, 0); // ATM
SetPlayerMapIcon(playerid, 37,-1575.3977,902.4458,7.5610, 52, 0); // ATM
SetPlayerMapIcon(playerid, 38,-2434.0908,516.8967,30.3705, 52, 0); // ATM
SetPlayerMapIcon(playerid, 39,852.7184,-1760.9111,13.5491, 52, 0); // ATM
SetPlayerMapIcon(playerid, 40,1243.2965,-1561.1505,13.5545, 52, 0); // ATM
SetPlayerMapIcon(playerid, 41,1787.9928,-1592.2491,13.4870, 52, 0); // ATM

IsSpawned[playerid] =1;

new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));

if(gTeam[playerid] == CIVILIAN)
{
SetPlayerColor(playerid, WHITE);
new file[256];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), "%s.Cab28842", name);
new position = random(sizeof(CivilianSpawn));
SetPlayerPos(playerid, CivilianSpawn[position][0], CivilianSpawn[position][1], CivilianSpawn[position][2]);
SetPlayerFacingAngle(playerid, CivilianSpawn[position][3]);
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid, true);
GivePlayerWeapon(playerid,5,1);
GivePlayerWeapon(playerid, 32, 200);
GivePlayerWeapon(playerid, 43, 50);
GivePlayerWeapon(playerid, 24, 200);
GivePlayerWeapon(playerid, 26, 200);
if(PlayerSkin[playerid] >= 0)
{
SetPlayerSkin(playerid,dini_Int(file, "Skin"));
}
}
else if(gTeam[playerid] == Medic)
{
SetPlayerColor(playerid, PINK);
new position = random(sizeof(MedicSpawn));
SetPlayerPos(playerid, MedicSpawn[position][0], MedicSpawn[position][1], MedicSpawn[position][2]);
SetPlayerFacingAngle(playerid, MedicSpawn[position][3]);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, PINK, "As A Medic,Your Job Is To Heal Injured Players. Enter An Amblulance, And Wait For A Call.");
SendClientMessage(playerid, PINK, "/heal, /healme For A Full List Of Commands, Type /cmds.");
GivePlayerWeapon(playerid,41,1000);
}
else if(gTeam[playerid] == COP)
{
new position = random(sizeof(CopSpawn));
SetPlayerColor(playerid, LIGHT_BLUE);
SetPlayerPos(playerid, CopSpawn[position][0], CopSpawn[position][1], CopSpawn[position][2]);
SetPlayerFacingAngle(playerid, CopSpawn[position][3]);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, LIGHT_BLUE, "As A Police Officer, Your Job Is To Arrest Red Player, And Ticket Yellow Players Using");
SendClientMessage(playerid, LIGHT_BLUE, "/arrest and /ticket. You Must Never Shoot Yellow Or White Players.");
GameTextForPlayer(playerid,"~g~Read chat!",2000,5);
GivePlayerWeapon(playerid,25,100);
GivePlayerWeapon(playerid,22,100);
GivePlayerWeapon(playerid,32,100);
GivePlayerWeapon(playerid,43,100);
}
else if(gTeam[playerid] == SWAT || gTeam[playerid] == FBI)
{
SetPlayerColor(playerid, BLUE);
new position = random(sizeof(SFSpawn));
SetPlayerPos(playerid, SFSpawn[position][0], SFSpawn[position][1], SFSpawn[position][2]);
SetPlayerFacingAngle(playerid, SFSpawn[position][3]);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, LIGHT_BLUE, "As A Police Officer, Your Job Is To Arrest Red Player, And Ticket Yellow Players Using");
SendClientMessage(playerid, LIGHT_BLUE, "/arrest and /ticket. You Must Never Shoot Yellow Or White Players.");
GameTextForPlayer(playerid,"~g~Read chat!",2000,5);
GivePlayerWeapon(playerid,29,400);
GivePlayerWeapon(playerid,24,100);
GivePlayerWeapon(playerid,31,300);
}
else if(gTeam[playerid] == ARMY)
{
SetPlayerColor(playerid, GREEN);
new position = random(sizeof(ARMYSpawn));
SetPlayerPos(playerid, ARMYSpawn[position][0], ARMYSpawn[position][1], ARMYSpawn[position][2]);
SetPlayerFacingAngle(playerid, ARMYSpawn[position][3]);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, LIGHT_GREEN, "As A Police Officer, Your Job Is To Arrest Red Player, And Ticket Yellow Players Using");
SendClientMessage(playerid, LIGHT_GREEN, "/arrest and /ticket. You Must Never Shoot Yellow Or White Players.");
GameTextForPlayer(playerid,"~g~Read chat!",2000,5);
GivePlayerWeapon(playerid,29,400);
GivePlayerWeapon(playerid,24,100);
GivePlayerWeapon(playerid,31,300);
}
Spawned[playerid] = 1;
return true;
}

Reply


Messages In This Thread
more classes please help. - by UserName31 - 25.06.2012, 02:16
Re: more classes please help. - by Makaveli93 - 25.06.2012, 02:20
Re: more classes please help. - by UserName31 - 25.06.2012, 02:27
Re: more classes please help. - by Makaveli93 - 25.06.2012, 02:37
Re: more classes please help. - by UserName31 - 25.06.2012, 02:41
Re: more classes please help. - by Makaveli93 - 25.06.2012, 03:06
Re: more classes please help. - by UserName31 - 25.06.2012, 03:57
Re: more classes please help. - by UserName31 - 25.06.2012, 19:12

Forum Jump:


Users browsing this thread: 3 Guest(s)