- เครดิต
- 773
- ความรู้
-
- เงิน $
-
- ความดี
-
|
- if(strcmp(cmd, "/unprison",true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerInfo[playerid][pAdmin] < 2)
- {
- SendClientMessage(playerid, COLOR_GREY, " you are not authorized to use this command!");
- return 1;
- }
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp))
- {
- SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /unprison [playerid/PartOfName]");
- return 1;
- }
- giveplayerid = ReturnUser(tmp);
- if(IsPlayerConnected(giveplayerid))
- {
- if(giveplayerid != INVALID_PLAYER_ID)
- {
- GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), "* %s ¶Ù¡»Å´ÍÍ¡¨Ò¡¤Ø¡ÅѺ ·ÓµÑÇ´Õ ËÃ×Í ÊÑÒ¨ÐäÁèâ»ÃÍÕ¡µèÍä»áÅéÇ.", giveplayer);
- SendClientMessage(playerid, COLOR_LIGHTRED, string);
- format(string, sizeof(string), "* ¤Ø³¶Ù¡»Å´ÍÍ¡¨Ò¡¤Ø¡ÅѺ â´Â %s à¾ÃÒФس·ÓµÑÇ´Õ ËÃ×Í ÂÍÁÃѺÇèÒ¨ÐäÁèâ»ÃÍÕ¡.", sendername);
- SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
- PlayerInfo[giveplayerid][pJailTime] = 0;
- PlayerInfo[giveplayerid][pJailed] = 0;
- SetPlayerWorldBounds(giveplayerid, 20000.0000,-20000.0000,20000.0000,-20000.0000);
- SetPlayerPos(giveplayerid, 93.4852,1920.6235,18.0450);
- format(string, 250, "AdmCmd: %s ¶Ù¡»Å´ÍÍ¡¨Ò¡¤Ø¡ÅѺ â´Â %s à¾ÃÒФس·ÓµÑÇ´Õ ËÃ×Í ÂÍÁÃѺÇèÒ¨ÐäÁèâ»ÃÍÕ¡.", giveplayer, sendername);
- BroadCast(COLOR_LIGHTRED,string);
- format(string, 250, "AdmWarning: %s ¶Ù¡»Å´ÍÍ¡¨Ò¡¤Ø¡ÅѺ â´Â %s à¾ÃÒФس·ÓµÑÇ´Õ ËÃ×Í ÂÍÁÃѺÇèÒ¨ÐäÁèâ»ÃÍÕ¡.", giveplayer, sendername);
- ABroadCast(COLOR_YELLOW,string,1);
- }
- }
- }
- return 1;
- }
คัดลอกไปที่คลิปบอร์ด
|
|