- เครดิต
- 31
- ความรู้
-
- เงิน $
-
- ความดี
-
|
if(strcmp(cmd, "/pk", true) == 0)//Fabulous_Corvenus
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /pk [playerid/PartOfName]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (IsPlayerConnected(giveplayerid))
{
if (ProxDetectorS(2.0, playerid, giveplayerid))
{
if(deathcpr[giveplayerid] != 1)
{
SendClientMessage(playerid, COLOR_GREY, " เขายังไม่ใกล้ตายเลยคับ");
return 1;
}
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "จะตบเกรียนตัวเองทำไม!"); return 1; }
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
PlayerFrozened[playerid] = 0;
TogglePlayerControllable(giveplayerid, 1);
SetPlayerHealth(giveplayerid, 0);
deathcpr[giveplayerid] = 0;
SafeGivePlayerMoney(playerid, 100);
SafeGivePlayerMoney(giveplayerid, -100);
format(string, sizeof(string), "%s ได้ตบเกรียนของ %s ดังแป๊ะ แป๊ะ ~ !", sendername,giveplayer);
ProxDetector(30.0, playerid, string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(giveplayerid, "~r~Greannn", 4000, 3);
}
}
}
} |
|