Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:kazniigraca(playerid, params[], help)
- {
- if(PlayerInfo[playerid][pSuspendovan] == 1) return SCM(playerid,-1,""SRWBOJA"[Flash Gaming]: "BELA"VI STE SUSSPENDOVANI VAMA SU KOMANDE ZABRANJENE ");
- if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,-1,""SRWBOJA"[Flash Gaming]: "BELA"Nijeste Admin");
- if(AdminDuty[playerid] == 0) return SCM(playerid,-1,""SRWBOJA"[Flash Gaming]: "BELA"Morate biti na Administrator duznosti!");
- new id, stat;
- if(sscanf(params, "uiiI", id, stat))
- {
- SCM(playerid, -1, ""SRWBOJA"[Flash Gaming]:"SIVA"/kazniigraca [ID/Nick] [Kod] ");
- SCM(playerid, -1, ""ZPLAVA"| (1). | [DM](100000$) | (2). | [PG](100000$) | (3). | [MG](50000$) | (4). | [CK](1000000$) |");
- SCM(playerid, -1, ""ZPLAVA"| (5). | [AA](200000$) | (6). | [BA](500000$) | (7). | [AE](200000$) | (8). | [RPS](50000$) |");
- SCM(playerid, -1, ""ZPLAVA"| (9). | [TK](80000$) | (10).| [PvE](50000$) |");
- SCM(playerid, -1, ""ZPLAVA"| (11). | [PvP](50000$) | (12). | [KOS](30000$) |");
- SCM(playerid, -1, ""ZPLAVA"| (13). | [RK](50000$) | | (14). | [BH](20000$) ");
- return 1;
- }
- if(id == INVALID_PLAYER_ID) return SCM(playerid, -1, ""SRWBOJA"[Flash Gaming]: "BELA"Pogresili ste ID!");
- new string[360];
- if(stat == 1)
- {
- g_NovacMinus(playerid, 100000);
- SavePlayer(id);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Kaznili ste %s igraca %d. za DM!", GetName(id));
- SCM(playerid, -1, string);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Administrator %s vas je kaznio za DM(100000$).", GetName(playerid));
- SCM(id, -1, string);
- }
- else if(stat == 2)
- {
- g_NovacMinus(playerid, 100000);
- SavePlayer(id);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Kaznili ste %s igraca %d. za PG!", GetName(id));
- SCM(playerid, -1, string);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Administrator %s vas je kaznio za PG(100000$).", GetName(playerid));
- SCM(id, -1, string);
- }
- else if(stat == 3)
- {
- g_NovacMinus(playerid, 50000);
- SavePlayer(id);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Kaznili ste %s igraca %d. za MG!", GetName(id));
- SCM(playerid, -1, string);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Administrator %s vas je kaznio za MG(50000$).", GetName(playerid));
- SCM(id, -1, string);
- }
- else if(stat == 4)
- {
- g_NovacMinus(playerid, 1000000);
- SavePlayer(id);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Kaznili ste %s igraca %d. za CK!", GetName(id));
- SCM(playerid, -1, string);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Administrator %s vas je kaznio za CK(1000000$).", GetName(playerid));
- SCM(id, -1, string);
- }
- else if(stat == 5)
- {
- g_NovacMinus(playerid, 200000);
- SavePlayer(id);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Kaznili ste %s igraca %d. za AA!", GetName(id));
- SCM(playerid, -1, string);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Administrator %s vas je kaznio za AA(200000).", GetName(playerid));
- SCM(id, -1, string);
- }
- else if(stat == 6)
- {
- g_NovacMinus(playerid, 500000);
- SavePlayer(id);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Kaznili ste %s igraca %d. za BA!", GetName(id));
- SCM(playerid, -1, string);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Administrator %s vas je kaznio za BA(500000$).", GetName(playerid));
- SCM(id, -1, string);
- }
- else if(stat == 7)
- {
- g_NovacMinus(playerid, 200000);
- SavePlayer(id);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Kaznili ste %s igraca %d. za AE!", GetName(id));
- SCM(playerid, -1, string);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Administrator %s vas je kaznio za AE(200000$).", GetName(playerid));
- SCM(id, -1, string);
- }
- else if(stat == 8)
- {
- g_NovacMinus(playerid, 50000);
- SavePlayer(id);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Kaznili ste %s igraca %d. za RPS!", GetName(id));
- SCM(playerid, -1, string);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Administrator %s vas je kaznio za RPS(50000$).", GetName(playerid));
- SCM(id, -1, string);
- }
- else if(stat == 9)
- {
- g_NovacMinus(playerid, 80000);
- SavePlayer(id);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Kaznili ste %s igraca %d. za TK!", GetName(id));
- SCM(playerid, -1, string);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Administrator %s vas je kaznio za TK(80000$).", GetName(playerid));
- SCM(id, -1, string);
- }
- else if(stat == 10)
- {
- g_NovacMinus(playerid, 50000);
- SavePlayer(id);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Kaznili ste %s igraca %d. za PvE!", GetName(id));
- SCM(playerid, -1, string);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Administrator %s vas je kaznio za PvE(80000$).", GetName(playerid));
- SCM(id, -1, string);
- }
- else if(stat == 11)
- {
- g_NovacMinus(playerid, 50000);
- SavePlayer(id);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Kaznili ste %s igraca %d. za PvP!", GetName(id));
- SCM(playerid, -1, string);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Administrator %s vas je kaznio za PvP(50000$).", GetName(playerid));
- SCM(id, -1, string);
- }
- else if(stat == 12)
- {
- g_NovacMinus(playerid, 30000);
- SavePlayer(id);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Kaznili ste %s igraca %d. za KOS!", GetName(id));
- SCM(playerid, -1, string);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Administrator %s vas je kaznio za KOS(30000$).", GetName(playerid));
- SCM(id, -1, string);
- }
- else if(stat == 13)
- {
- g_NovacMinus(playerid, 50000);
- SavePlayer(id);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Kaznili ste %s igraca %d. za RK!", GetName(id));
- SCM(playerid, -1, string);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Administrator %s vas je kaznio za RK(50000$).", GetName(playerid));
- SCM(id, -1, string);
- }
- else if(stat == 14)
- {
- g_NovacMinus(playerid, 20000);
- SavePlayer(id);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Kaznili ste %s igraca %d. za BH!", GetName(id));
- SCM(playerid, -1, string);
- format(string, charsmax(string), ""SRWBOJA"[Flash Gaming]: "BELA"Administrator %s vas je kaznio za BH(20000$).", GetName(playerid));
- SCM(id, -1, string);
- }
- else return SCM(playerid, -1, ""PPLAVA"(GRESKA) "SIVA"Pogresan kod!");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement