Quote:
Originally Posted by bigcomfycouch
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