14.07.2010, 22:05
Code:
CMD:pickup(playerid, params[]) { if(IsPlayerConnected(playerid)) { new Float:x, Float:y, Float:z; new message[128]; new pickupid; if(sscanf(params, "u", 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, 1, x, y, z); } return 1; }