21.08.2013, 20:39
pawn Код:
CMD:destroyevidence(playerid, params[])
{
if(PlayerInfo[playerid][pJob] != 1 && PlayerInfo[playerid][pJob2] != 1
{
SendClientMessageEx(playerid, COLOR_GREY, "You're not a detective.");
return 1;
}
else {
foreach (Player, i) {
if(IsPlayerInRangeOfPoint(6.0,playerid,deadx[i], deady[i], deadz[i]))
{
Delete3DTextLabel(Evidence[i]); // playerid is the id of the player who uses the command, you must use I to specify the dead player's I'd.
return 1;
}
else {
SendClientMessageEx(playerid, COLOR_GREY, "You're not near any dead body.");
}
return 1;
}

