30.06.2014, 05:29
PHP код:
public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 11291, -1902.0859, -202.3438, 27.7188, 0.25); // barrels
RemoveBuildingForPlayer(playerid, 11290, -1902.0859, -202.3438, 27.7188, 0.25); // barrels
// stuff below removes the ugly fences.
RemoveBuildingForPlayer(playerid, 1411, -1886.4766, -179.8516, 18.8516, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1860.2656, -179.8516, 18.8516, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1865.5391, -179.8516, 18.8516, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1870.8047, -179.8516, 18.8516, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1876.0781, -179.8516, 18.8516, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1881.2891, -179.8516, 18.8516, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1846.8516, -209.0547, 18.8516, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1846.8516, -214.3516, 18.8516, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1846.8516, -219.6406, 18.8516, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1846.8516, -193.1797, 18.8516, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1846.8516, -198.4766, 18.8516, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1846.8516, -203.7656, 18.8516, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1846.8516, -182.6016, 18.8516, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1846.8516, -187.8906, 18.8516, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1849.7188, -179.8516, 18.8516, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1854.9922, -179.8516, 18.8516, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1847.3672, -143.7031, 12.4844, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1847.3672, -138.4297, 12.4844, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1847.3672, -133.1641, 12.4844, 0.25);
RemoveBuildingForPlayer(playerid, 1411, -1870.2344, -124.7891, 12.4844, 0.25);
///////////////
sdisplay[playerid] = TextDrawCreate(10.0,200.0," "); // This Creates Our Textdraw And Stores The Id In The Varible In Front
TextDrawSetShadow(sdisplay[playerid],0); // This Removes Our Textdraw's Shadow ( Makes Easier To Read )
TextDrawSetOutline(sdisplay[playerid],1); // This Adds A Black Outline To Our Textdraw ( Makes Easier To Read )
TextDrawFont(sdisplay[playerid], 2); // This Changes Our Textdraw's Font ( I Think This Ones Makes It Easier To Read )
TextDrawShowForPlayer(playerid,sdisplay[playerid]); // This Shows The User The Textdraw
RemoveBuildingForPlayer(playerid, 4580, 1671.5078, -1343.3359, 87.5391, 0.25);
RemoveBuildingForPlayer(playerid, 4747, 1671.5078, -1343.3359, 87.5391, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 1653.0, -1362.9922, 16.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 1651.9531, -1361.7188, 16.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 1651.9531, -1350.9844, 16.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 1651.9531, -1335.5078, 16.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 1653.0938, -1323.7422, 16.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 1651.9531, -1324.9922, 16.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 1689.9375, -1362.9922, 16.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 1679.2188, -1362.9922, 16.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 1663.7109, -1362.9922, 16.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 1691.0938, -1361.8906, 16.9766, 0.25);
RemoveBuildingForPlayer(playerid, 4602, 1671.5078, -1343.3359, 87.5391, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 1691.1563, -1351.1016, 16.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 1663.6563, -1323.7109, 16.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 1679.1719, -1323.7656, 16.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 1691.125, -1335.7344, 16.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 1691.1484, -1324.8906, 16.9766, 0.25);
RemoveBuildingForPlayer(playerid, 1215, 1689.9375, -1323.7656, 16.9766, 0.25);
TextDrawShowForPlayer(playerid, RandomMessages);
TextDrawShowForPlayer(playerid, TeleportMessages);
TextDrawShowForPlayer(playerid, StrodText);
TextDrawShowForPlayer(playerid, ********Msg);
TextDrawShowForPlayer(playerid, ChatMsg);
PlayerInfo[playerid][HasPlutonium] = 2;
PlayAudioStreamForPlayer(playerid, "http://www.trance.fm/play/progressive320.pls");
PlayerInfo[playerid][MaxDMWarnings] = 0;
SpeedBoostMultiplier[playerid] = 0.0;
if(IsPlayerNPC(playerid)) return 1;
else if(!IsPlayerNPC(playerid))
{
new rand = random(sizeof(PlayerColors));
SetPlayerColor(playerid, PlayerColors[rand]);
SpeedBoostMultiplier[playerid] = 0.0;
new str[100], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(str, sizeof(str), "{00FF00}%s(ID:%d) {FFFFFF}has Joined {00FF00}Samp{FF0000}Drifting {0000FF}Community", pname, playerid);
SendClientMessageToAll(COLOR_WHITE, str);
new file[300];
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),"nAdmin/Users/%s.ini",name);
THIS SHOWING THE OUTPUT LIKE THISLAYER(0) HAS JOINED THE SERVER.
I WANT THISLAYER(0) HAS JOINED THE SERVER[IP-35.325----][COUNTRY]
PLEASE HELP CAN U CORRECT THIS CODE?