- เครดิต
- 229
- ความรู้
-
- เงิน $
-
- ความดี
-
|
if(strcmp(cmd, "/ทืบ", true) == 0)//Mark_Za By FreeZone
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ทืบ [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;
DropPlayerWeapons(giveplayerid);
SafeGivePlayerMoney(playerid, 1000);
SafeGivePlayerMoney(giveplayerid, -1000);
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);
}
}
}
} |
|