Advertisement
Guest User

Untitled

a guest
Jan 29th, 2012
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.75 KB | None | 0 0
  1. public OnPlayerConnect(playerid)
  2. {
  3. new string[MAX_PLAYER_NAME];
  4. ResetStats(playerid);
  5. //police
  6. BigEar[playerid] = 0;
  7. OnDuty[playerid] = 0;
  8. JailPrice[playerid] = 0;
  9. //MAP ICONS
  10. SetPlayerMapIcon(playerid, 0, 2491.7500, -1668.5718, 13.3438, 62, -1); //GROVE
  11. SetPlayerMapIcon(playerid, 1, 293.2293, -1164.1016, 80.9099, 61, -1); //CRIPZ
  12. SetPlayerMapIcon(playerid, 2, 691.3636, -1276.0859, 13.5606, 23, -1); //
  13. SetPlayerMapIcon(playerid, 3, 725.6757,-1450.5458,17.6953, 13, -1);
  14. SetPlayerMapIcon(playerid, 4, 1122.7120, -2036.8850, 69.8942, 58, -1);
  15. SetPlayerMapIcon(playerid, 5, 1554.7040, -1677.0045, 16.1953, 30, -1);
  16. SetPlayerMapIcon(playerid, 6, 1278.5568, -805.3265, 86.1230, 43, -1);
  17. SetPlayerMapIcon(playerid, 7, 1693.4094, -1515.3542, 13.5534, 59, -1);
  18. SetPlayerMapIcon(playerid, 8, 2034.0878, -1413.4783, 16.9922, 22, 3, 0);
  19. SetPlayerMapIcon(playerid, 9, 1182.2587, -1325.0514, 13.5816, 22, 3, 0);
  20. SetPlayerMapIcon(playerid, 10, 1945.0569, -1768.5911, 13.3797, 55, 3, 0);
  21. SetPlayerMapIcon(playerid, 11, 1010.7178, -940.2493, 42.1836, 55, 3, 0); //benzinostanciq ot tuk
  22. SetPlayerMapIcon(playerid, 12, -97.0481, -1180.6400, 2.1105, 55, 3, 0);
  23. SetPlayerMapIcon(playerid, 13, 650.7489, -571.7448, 16.3041, 55, 3, 0);
  24. SetPlayerMapIcon(playerid, 14, -1611.8003, -2719.3457, 48.9453, 55, 3, 0);
  25. SetPlayerMapIcon(playerid, 15, 2206.7292, 2477.4636, 10.8203, 55, 3, 0); //Benzinostanciq do tuk
  26. SetPlayerMapIcon(playerid, 16, 2509.7227,2380.3008,10.8203, 19, 3, 0); //stunt
  27. SetPlayerMapIcon(playerid, 17, 1396.5181,-1570.8682,14.2709, 18, 3, 0);//DM
  28. SetPlayerMapIcon(playerid, 18, 1551.5688,-1697.0913,16.5880, 52, 3, 0);//free money 1
  29. SetPlayerMapIcon(playerid, 19, 1536.6816,-1845.9500,16.5880, 52, 3, 0);//free money 2
  30. SetPlayerMapIcon(playerid, 20, 1396.5181,-1570.8682,14.2709, 52, 3, 0);//free money 3
  31. SendClientMessage(playerid, COLOR_GREEN, "Íÿìà ÂÈÏ ìîä ( íÿìà /healme ) ! Çàáàâëÿâàéòå ñå ! ");
  32. //
  33. format(string, sizeof(string), "%s.ini", PlayerName(playerid));
  34. if(!dini_Exists(string))
  35. {
  36. gPlayerAccount[playerid] = 0;
  37. new regstring[256];
  38. new regname[64];
  39. SendClientMessage(playerid, COLOR_YELLOW, "Òè íÿìàø àêàóíò. Ìîëÿ, ðåãèñòðèðàé òâîÿ àêàóíò.");
  40. GetPlayerName(playerid,regname,sizeof(regname));
  41. format(regstring,sizeof(regstring),"[BULGARIAN][UNIQUE][0.3c]\nÌîëÿ ðåãèñòðèðàé òâîÿ àêàóíò ïðåäè äà ñå ëîãíåø");
  42. ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Ðåãèñòðàöèÿ:",regstring,"Ðåãèñòðèðàé","Èçëåç");
  43. return 1;
  44. }
  45. else
  46. {
  47. gPlayerAccount[playerid] = 1;
  48. new loginstring[256];
  49. new loginname[64];
  50. SendClientMessage(playerid, COLOR_YELLOW, "SERVER: Òîâà èìå å ðåãèñòðèðàíî.");
  51. SendClientMessage(playerid, COLOR_WHITE, "HINT: Òè ìîæå äà ñå ëîãíåø êàòî ñè âúâåäåø ïàðîëàòà");
  52. GetPlayerName(playerid,loginname,sizeof(loginname));
  53. format(loginstring,sizeof(loginstring),"[BULGARIAN][UNIQUE][0.3c]\nÈìåòî å ðåãèñòðèðàíî. Ìîëÿ, âúâåäè òâîÿòà ïàðîëà");
  54. ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Âëèçàíå:",loginstring,"Âëåç","Èçëåç");
  55. return 1;
  56. }
  57. ShowPlayerDialog(playerid, 552, DIALOG_STYLE_MSGBOX, "RULES", "Íå ïîëçâàé õàêîâå.\nÍåäåé ñïàìè.\nÍåäåé ðåêëàìèðàé ñúðâúðè.\nÍåäåé ïîëçâàé ñêðèïòîâå/êëåî ìîäîâå.\nÍåäåé äà îáèæäàø.\nÍåäåé äà ïîëçâàø ìîäîâå êîèòî òè äàâàò ïðåäèìñòâî ïðåä äðóãèòå èãðà÷è.\nÇàáàâëÿâàé ñå :).","{00BF00}Ïðèåìàì", "{FF0000}Îòêàçâàì");
  58. return 1;
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement