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