Código:
CMD:cpick(playerid, params[])
{
new id;
if(sscanf(params, "i",id))
{
SendClientMessage(playerid,-1,"errado /teste");
}
else
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, Float:X, Float:Y, Float:Z);
dropLoots[id][pickup] = CreatePickup(666, 23, Float:X, Float:Y, Float:Z, -1);
}
}
CMD:dpicks(playerid, params[])
{
for (new i = 0; i < MAX_PLAYERS_DROPS; i++)
{
DestroyPickup(dropLoots[i][pickup]);
dropLoots[i][pickup] = 0;
}
}