Command Activated Pickups HELP?
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("//Command Here\\", cmdtext, true, 10) == 0) {
        new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, sizeof(pname));
        format(string, sizeof(string), "%s Has picked up <<Item>>", pname);
        if(IsPlayerInRangeOfPoint(playerid, 1.0,Pickup Cords))
        {
            SendClientMessageToAll(0xAAAAAAAA, string);
            return 1;
        }
        else SendClientMessage(playerid, 0x32E712FF, "Sorry your not in range of a pickup");
    }
    return 0;
}
Try this script
Reply


Messages In This Thread
Command Activated Pickups HELP? - by ShawtyyMacJunior - 12.07.2012, 23:53
Re: Command Activated Pickups HELP? - by zT KiNgKoNg - 13.07.2012, 00:08
Re: Command Activated Pickups HELP? - by ShawtyyMacJunior - 13.07.2012, 00:16
Re: Command Activated Pickups HELP? - by [MM]RoXoR[FS] - 13.07.2012, 04:36
Re: Command Activated Pickups HELP? - by Devilxz97 - 13.07.2012, 06:18

Forum Jump:


Users browsing this thread: 3 Guest(s)