frozzys

Untitled

May 16th, 2012
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.73 KB | None | 0 0
  1. public OnPlayerSpawn(playerid)
  2. {
  3.     if(pInfo[ playerid ][ pAuthstate ] == 2)
  4.     {
  5.         SendClientMessage(playerid,0xFFFFFFFF,"Atvykai į Lietuvišką FreeRoam serverį! Nežinai komandų ? Visa info rasi {CCFF66}/info");
  6.         Uzkraunam(playerid); // užkraunam visus išsaugotus duomenis
  7.         SetPlayerPos(playerid, -2052.9958,458.1523,35.1719); // spawn vietos koordinatės.
  8.         GameTextForPlayer(playerid,"~r~Prisijungiai~r~",2000,1);
  9.         SetPlayerHealth(playerid, 10000.0);
  10.         SetTimerEx("AntiSpawnkill",5000, 0, "i", playerid);
  11.         GameTextForPlayer(playerid,"~r~Prisijungiai~r~",2000,1);
  12.         pInfo[playerid][pAuthstate] = 3;
  13.         //
  14.     if(mire[ playerid ])
  15.      {
  16.   SetPlayerPos(playerid, -2052.9958,458.1523,35.1719); // spawn vietos koordinatės.
  17.    mire[playerid] = 0;
  18.  }
  19.  //
  20.  ShowPlayerDialog(playerid, DIALOG_LANGUAGE, DIALOG_STYLE_LIST,"Kalbos pasirinkimas/Language select","Lietuvių\nEnglish","Ok","Ok");
  21.  //
  22.     }
  23.         else if(pInfo[ playerid ][ pAuthstate ] == 1)
  24.     {
  25.         SetPlayerPos(playerid, -2052.9958,458.1523,35.1719); // spawn vietos koordinatės.
  26.         GivePlayerMoney(playerid, 200); // $$ prisijungus duos 200 litų.
  27.         SetPlayerScore(playerid, 5); // duoda 5 xp prisijungus
  28.         SetPlayerHealth(playerid,100); // gyvybė.
  29.         pInfo[ playerid ][ lygis ] = 0; // žaidėjo lygį nustatome į 0, jo lygis 0
  30.         SetPlayerHealth(playerid, 10000.0);
  31.         SetTimerEx("AntiSpawnkill",5000, 0, "i", playerid);
  32.         pInfo[playerid][pAuthstate] = 3;
  33.         //
  34.         if(mire[ playerid ])
  35.      {
  36.   SetPlayerPos(playerid, -2052.9958,458.1523,35.1719); // spawn vietos koordinatės.
  37.    mire[playerid] = 0;
  38.  }
  39.     }
  40.     //
  41.     ShowPlayerDialog(playerid, DIALOG_LANGUAGE, DIALOG_STYLE_LIST,"Kalbos pasirinkimas/Language select","Lietuvių\nEnglish","Ok","Ok");
  42.     return 1;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment