12.04.2015, 13:17
pawn Код:
CMD:pickup(playerid, params[])
{
for(new i = 0; i < MAX_LABELS; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, LabelInfo[i][LabelX], LabelInfo[i][LabelY], LabelInfo[i][LabelZ]))
{
format(GlobalString, sizeof(GlobalString), "%s picks up a weapon shell from the ground.", GetUsername(playerid));
ProxDetector(15.0, playerid, GlobalString, COLOR_PURPLE);
Delete3DTextLabel(Text3D:LabelInfo[i][LabelID]);
break;
}
else SendClientMessage(playerid, COLOR_RED, "Error:"COL_WHITE" You're not near anything to pickup."); break;
}
return true;
}