Poftim aceasta este de la onplayerconnect!
OnPlayerConnect(playerid);
Textdraw0 = TextDrawCreate(3.000000,344.000000,"..::Need For Speed::..");
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);
Checkgate = SetTimer("CheckGate", 1000, 1);
lvwz = SetTimer("LVWZ", 1000, 1);
SetPlayerMapIcon( playerid, 1, -3535.9673,-66.2674,2.1839, 5, 0); //Airport Admincastle
SetPlayerMapIcon( playerid, 2, -3357.6938,-69.7644,123.2506, 19, 0); //Flag AdminCastle
SetPlayerMapIcon( playerid, 3, -3284.2493,-125.4545,2.5392, 9, 0); //Boats AdminCastle
// SetPlayerMapIcon( playerid, 4, 2869.8384,-1749.3060,11.0444, 37, 0); //Secret Stuntzone
SetPlayerMapIcon( playerid, 5, 1002.3448,-2291.4976,14.0816, 53, 0); //DragRace
SetPlayerMapIcon( playerid, 6, 200.6568,2503.0281,16.4844, 5, 0); //AA
SetPlayerMapIcon( playerid, 7, -468.6863,2207.8826,46.5093, 56, 0); //SpawnPoint
SetPlayerMapIcon( playerid, 8, 314.3689,1906.3972,17.6406, 5, 0); //Airbattle (Area51)
SetPlayerMapIcon( playerid, 9, 610.0776,1698.3099,6.9922, 51, 0); //Truck Stop
SetPlayerMapIcon( playerid, 10, -1597.0704,-2727.6892,48.5391, 51, 0); //Truck Stop
SetPlayerMapIcon( playerid, 11, -327.0811,1768.1223,42.7596, 51, 0); //Truck Stop
SetPlayerMapIcon( playerid, 12, 1734.6804,-1944.9839,13.564, 48, 0); //Train Station
SetPlayerMapIcon( playerid, 13, -1961.2306,138.1871,27.6875, 48, 0); //Train Station
SetPlayerMapIcon( playerid, 14, 1433.2821,2651.9473,11.3926, 48, 0); //Train Station
SetPlayerMapIcon( playerid, 15, 2841.9917,1290.7056,11.3906, 48, 0); //Train Station
SetPlayerMapIcon( playerid, 16, -1433.4529,-956.0518,200.9836, 19, 0); //Flag Hideout
new pName[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s a intrat pe server.", pName);
SendClientMessageToAll(COLOR_GREY, string);
if(!strcmp("[ViP]Labrik",pName,true) || !strcmp("netzeek",pName,true) || !strcmp("[MT]Lavis",pName,true))
{
new kstring[128];
format(kstring, sizeof(kstring), "%s a primit kick (nume nepermis).", pName);
SendClientMessageToAll(COLOR_GREY, kstring);
print(kstring);
Kick(playerid);
}
AllowPlayerTeleport(playerid, 0);
BombArmed[playerid] = false;
AntiFalloff[playerid] = false;
DMZone[playerid] = 0;
spawnplacechosen[playerid] = false;
ReceiveInfo[playerid] = false;
stupidjumpsfound[playerid] = 0;
SendClientMessage(playerid, COLOR_BASIC, "Bun venit pe ..::Need For Speed::.. speram sa te distrezi!");
SendClientMessage(playerid, COLOR_BASIC, "Joaca corect, nu face spam,ai voie cu hack!, etc.");
SendClientMessage(playerid, COLOR_RED, "Pentru mai multe informatii scrie /ajutor.");
SendClientMessage(playerid, COLOR_BASIC, "Nu trage,si nu va DM cu admini!");
return 1;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public CountDown()
{
switch(Count)
{
case 5: { GameTextForAll("~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~b~-~r~ 5 ~b~-", 1100, 3); }
case 4: { GameTextForAll("~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~b~-~r~ 4 ~b~-", 1100, 3); }
case 3: { GameTextForAll("~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~b~-~r~ 3 ~b~-", 1100, 3); }
case 2: { GameTextForAll("~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~b~-~r~ 2 ~b~-", 1100, 3); }
case 1: { GameTextForAll("~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~b~-~r~ 1 ~b~-", 1100, 3); }
case 0:
{
GameTextForAll("~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~b~-~g~ START! ~b~-", 2000, 3);
KillTimer(CountdownTimer);
IsCountdownStarted = false;
}
}
Count--;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
]
Pana la onplayerspawn
si asta este din server_log
[00:36:15] Incarcat cu succes.
[00:36:15] S-a incarcatat un gamemode.
[00:36:15]
[00:36:15] Number of vehicle models: 64
[00:43:12] Incoming connection: 178.45.6.99:60687
[00:43:12] [join] SLAVA251297 has joined the server (0:178.45.6.99)
[00:43:32] [part] SLAVA251297 has left the server (0:1)
[00:44:31] Incoming connection: 178.218.100.50:1191
[00:44:31] [join] Fixa has joined the server (0:178.218.100.50)
[00:45:03] Incoming connection: 178.41.66.86:1276
[00:45:03] [join] triller has joined the server (1:178.41.66.86)
[00:45:16] Incoming connection: 109.99.18.177:1099
[00:45:16] [join] alexutz has joined the server (2:109.99.18.177)
[00:45:43] [chat] [alexutz]: sall
[00:46:24] [NotimeBot]: FireWorkInfo has succesfully loaded
[00:46:34] Incoming connection: 87.126.115.187:1354
[00:46:34] [join] RPG has joined the server (3:87.126.115.187)
[00:46:35] Incoming connection: 87.126.115.187:2172
[00:46:35] [join] toaletna_bg has joined the server (4:87.126.115.187)
[00:46:37] Incoming connection: 87.126.115.187:2940
[00:46:37] [join] tigar has joined the server (5:87.126.115.187)
[00:46:46] Incoming connection: 84.203.79.85:52417
[00:46:46] [join] opTion has joined the server (6:84.203.79.85)
[00:47:08] Incoming connection: 188.110.61.114:61929
[00:47:08] [join] sonyact has joined the server (7:188.110.61.114)
[00:47:46] Incoming connection: 82.114.94.227:49391
[00:47:46] [join] Graniti has joined the server (8:82.114.94.227)
[00:47:51] Incoming connection: 94.50.74.110:2204
[00:47:51] [join] Aleksin_45 has joined the server (9:94.50.74.110)
[00:47:52] [part] Fixa has left the server (0:0)
[00:48:01] [part] alexutz has left the server (2:0)
[00:48:03] Incoming connection: 109.99.18.177:1100
[00:48:03] [join] alexutz has joined the server (0:109.99.18.177)
[00:48:19] Incoming connection: 95.168.45.208:4749
[00:48:19] [join] [SpeedBoys]Xtreme has joined the server (2:95.168.45.208)
Aicia nu este decat ca au intrat,dar poate voi stiti alceva! Aveti destule informati?