Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //--------------------------------------------
- if(strcmp(cmd, "/clearkp", true) == 0)
- {
- if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Police
- {
- if (PlayerToPoint(1, playerid,1574.2909,-1646.2194,6.1109))
- {
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{FF8306}KORISTETE:{FFFFFF}/clearkp [ID/Ime na Igracot].");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- if(ProxDetectorS(8.0, playerid, giveplayerid))
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "{04D6FB}Gi iscistivte kaznenite poeni na igrac %s.", giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- format(string, sizeof(string), "{04D6FB}%s vi gi iscisti Kaznetite Poeni.", sendername);
- SendClientMessage(giveplayerid, COLOR_WHITE, string);
- PlayerInfo[giveplayerid][pRadar] = 0;
- new name[MAX_PLAYER_NAME];
- new string22[100+MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string22, sizeof(string22), "%s gi iscisti kaznenite poeni na %s",sendername,giveplayer);
- PDSMS(COLOR_LIGHTBLUE,string22,1);
- }
- }
- return 1;
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "{FF4040}GRESKA:{FFFFFF}Ne ste vo Policija");
- }
- }
- }
- //------------------------------------------------------------------------------
- if(strcmp(cmd, "/checkkp", true) == 0)
- {
- if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Police
- {
- if (PlayerToPoint(1, playerid,1574.2909,-1646.2194,6.1109))
- {
- tmp = strtok(cmdtext,idx);
- if (!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_WHITE, "{FF8306}KORISTETE:{FFFFFF} /checkkp [ID/Ime na Igracot].");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if (giveplayerid == INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid, COLOR_WHITE, "{FF4040}GRESKA:{FFFFFF}Nema takov igrac.");
- return 1;
- }
- if(PlayerInfo[giveplayerid][pRadar] >= 1)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "{04D6FB}%s ima %d/5 Kazneni poeni.", giveplayer, PlayerInfo[giveplayerid][pRadar]);
- SendClientMessage(playerid, COLOR_WHITE, string);
- new name[MAX_PLAYER_NAME];
- new string22[100+MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string22, sizeof(string22), "%s proveruva kazneni poeni na %s, toj ima %d kazneni poeni",sendername,giveplayer,PlayerInfo[giveplayerid][pRadar]);
- PDSMS(COLOR_LIGHTBLUE,string22,1);
- }
- else
- {
- if(PlayerInfo[giveplayerid][pRadar] == 0)
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- format(string, sizeof(string), "{04D6FB}%s nema Kazneni Poeni", giveplayer);
- SendClientMessage(playerid, COLOR_WHITE, string);
- new name[MAX_PLAYER_NAME];
- new string22[100+MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string22, sizeof(string22), "%s proveruva kazneni poeni na %s, toj ima %d kazneni poeni",sendername,giveplayer,PlayerInfo[giveplayerid][pRadar]);
- PDSMS(COLOR_LIGHTBLUE,string22,1);
- }
- }
- }
- else
- {
- SendClientMessage(playerid, COLOR_WHITE, "{FF4040}GRESKA:{FFFFFF}Ne ste vo Policija");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement