Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerSpawn(playerid)
- {
- if(pInfo[ playerid ][ pAuthstate ] == 2)
- {
- SendClientMessage(playerid,0xFFFFFFFF,"Atvykai į Lietuvišką FreeRoam serverį! Nežinai komandų ? Visa info rasi {CCFF66}/info");
- Uzkraunam(playerid); // užkraunam visus išsaugotus duomenis
- SetPlayerPos(playerid, -2052.9958,458.1523,35.1719); // spawn vietos koordinatės.
- GameTextForPlayer(playerid,"~r~Prisijungiai~r~",2000,1);
- SetPlayerHealth(playerid, 10000.0);
- SetTimerEx("AntiSpawnkill",5000, 0, "i", playerid);
- GameTextForPlayer(playerid,"~r~Prisijungiai~r~",2000,1);
- pInfo[playerid][pAuthstate] = 3;
- //
- if(mire[ playerid ])
- {
- SetPlayerPos(playerid, -2052.9958,458.1523,35.1719); // spawn vietos koordinatės.
- mire[playerid] = 0;
- }
- //
- ShowPlayerDialog(playerid, DIALOG_LANGUAGE, DIALOG_STYLE_LIST,"Kalbos pasirinkimas/Language select","Lietuvių\nEnglish","Ok","Ok");
- //
- }
- else if(pInfo[ playerid ][ pAuthstate ] == 1)
- {
- SetPlayerPos(playerid, -2052.9958,458.1523,35.1719); // spawn vietos koordinatės.
- GivePlayerMoney(playerid, 200); // $$ prisijungus duos 200 litų.
- SetPlayerScore(playerid, 5); // duoda 5 xp prisijungus
- SetPlayerHealth(playerid,100); // gyvybė.
- pInfo[ playerid ][ lygis ] = 0; // žaidėjo lygį nustatome į 0, jo lygis 0
- SetPlayerHealth(playerid, 10000.0);
- SetTimerEx("AntiSpawnkill",5000, 0, "i", playerid);
- pInfo[playerid][pAuthstate] = 3;
- //
- if(mire[ playerid ])
- {
- SetPlayerPos(playerid, -2052.9958,458.1523,35.1719); // spawn vietos koordinatės.
- mire[playerid] = 0;
- }
- }
- //
- ShowPlayerDialog(playerid, DIALOG_LANGUAGE, DIALOG_STYLE_LIST,"Kalbos pasirinkimas/Language select","Lietuvių\nEnglish","Ok","Ok");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment