[Help] ZCMD Dynamic Pickup Creating
#3

Quote:
Originally Posted by bigcomfycouch
View Post
pawn Code:
CMD:pickup(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
                new Float:x, Float:y, Float:z;
                new message[128];
                new pickupid;
                if(sscanf(params, "i", pickupid)) return SendClientMessage(playerid, 0x00FF00AA, "USAGE: /pickup [Pickup ID]");
                format(message, sizeof(message), "AdmCmd: %s has created a minigun pickup", ReturnPlayerName(playerid));
                SendClientMessageToAll(0x00FF00AA, message);
                GetPlayerPos(playerid, x, y, z);
                CreatePickup(pickupid, 19, x, y, z);
    }
    return 1;
}
Thanks, gotta get used to these params :P

Anyways, got any idea about how to "for example" make a name satisfy a pickup id?
Like: /pickup Minigun = /pickup 362
Reply


Messages In This Thread
[Help] ZCMD Dynamic Pickup Creating - by Dudits - 14.07.2010, 22:05
Re: [Help] ZCMD Dynamic Pickup Creating - by bigcomfycouch - 14.07.2010, 22:12
Re: [Help] ZCMD Dynamic Pickup Creating - by Dudits - 14.07.2010, 22:15
Re: [Help] ZCMD Dynamic Pickup Creating - by bigcomfycouch - 14.07.2010, 22:43
Re: [Help] ZCMD Dynamic Pickup Creating - by Dudits - 14.07.2010, 22:48
Re: [Help] ZCMD Dynamic Pickup Creating - by bigcomfycouch - 14.07.2010, 22:50
Re: [Help] ZCMD Dynamic Pickup Creating - by Dudits - 14.07.2010, 23:00
Re: [Help] ZCMD Dynamic Pickup Creating - by Dudits - 14.07.2010, 23:14
Re: [Help] ZCMD Dynamic Pickup Creating - by bigcomfycouch - 15.07.2010, 02:23
Re: [Help] ZCMD Dynamic Pickup Creating - by Dudits - 15.07.2010, 03:10

Forum Jump:


Users browsing this thread: 1 Guest(s)