17.12.2015, 22:13
pickup
Quote:
CMDickup(playerid,params[]) { if(pInfo[playerid][pLevel] >= 6) { new type,id, Float:X, Float:Y, Float:Z; if(sscanf(params, "ii",type,id)) return SendClientMessage(playerid,yellow,"Usage: /Pickup <Type> <Pickup ID>"); CommandToAdmins(playerid,"pickup"); GetPlayerPos(playerid, X, Y, Z); switch(type) { return SendClientMessage(playerid,red,"Invalid pickup type!"); } FP = CreateDynamicPickup(id, type, X, Y, Z); } else return ShowMessage(playerid, red, 1); } |