- เครดิต
- 70
- ความรู้
-
- เงิน $
-
- ความดี
-
|
if(strcmp(cmd, "/unprison",true) == 0) Command By KEW ใครลบขอให้เซิฟเน่า จะสคริปดีแค่ไหนก็ไม่มีคน 555+
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pINAdmin] < 3)
{
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), "* คุณถูกปลดปล่อยออกจากคุกลับโดย Admin %s", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTRED, string);
WantedPoints[giveplayerid] = 0;
WantedLevel[giveplayerid] = 0;
SetPlayerStar(giveplayerid);
SetPlayerInterior(giveplayerid, 10);
SetPlayerPos(giveplayerid, 227.4012,113.1810,999.0156);
SetPlayerWorldBounds(giveplayerid,20000.0000,-20000.0000,20000.0000,-20000.0000); //Reset world to player
PlayerInfo[giveplayerid][pJailed] = 0;
PlayerInfo[giveplayerid][pJailTime] = 0;
JailTime[giveplayerid] = 0;
JailTimePoints[giveplayerid] = 0;
if(PlayerInfo[giveplayerid][pChar] > 0) { SetPlayerSkin(giveplayerid, PlayerInfo[giveplayerid][pChar]); }
else { SetPlayerSkin(giveplayerid, PlayerInfo[giveplayerid][pModel]); }
format(string, 256, "AdmWarning: %s ได้ปลดปล่อย %s ออกจากคุกลับ ", sendername, giveplayer);
SendAdminMessage(COLOR_YELLOW, string);
SetPlayerStar(giveplayerid);
//AdmCmdLog(string);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " That player is Offline !");
return 1;
}
}
return 1;
} |
|