Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:setseckey(playerid, params[])
- {
- if(PlayerInfo[playerid][pAdmin] >= 99999){
- new giveplayerid, seckey;
- if(!sscanf(params, "ui", giveplayerid, seckey)){
- if(IsPlayerConnected(giveplayerid)){
- if(giveplayerid != INVALID_PLAYER_ID){
- if(PlayerInfo[giveplayerid][pAdmin] != 0){
- PlayerInfo[giveplayerid][pSecKey] = seckey;
- gAdminAuthorized[giveplayerid] = 1;
- format(string, sizeof(string), " Admin %s has set your Security Key to %d! It will work after a relog.", PlayerRPName(playerid), seckey);
- SendClientMessage(giveplayerid, COLOR_GRAD1, string);
- format(string, sizeof(string), " You have set %s's Security Key to %d !", PlayerRPName(giveplayerid), seckey);
- SendClientMessage(playerid, COLOR_GRAD1, string);
- }else
- {
- SendClientMessage(playerid, COLOR_GREY, " That player is not an Admin !");
- }
- }
- }else{
- SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
- }
- }else{
- SendClientMessage(playerid, COLOR_WHITE, "Dastoor: /setseckey [playerid] [security code]");
- }
- }else{
- SendClientMessage(playerid, COLOR_GRAD1, " Shoma dastresie kafi baraye anjame inkar ra nadarid !");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment