Du könntest es so machen:
#define MAX_DRUGS_GET 10
#define DRUG_GET_PRICE 5000
ocmd:drugsget(playerid,params[])
{
new pakete;
if(Spieler[playerid][Job] == 5)
{
if(!IsPlayerInRangeOfPoint(playerid,3,1421.9120,386.1277,19.1840))return SendClientMessage(playerid,COLOR_RED,"Du bist nicht am Drogenabholplatz!");
if(sscanf(params,"i",pakete))return SendClientMessage(playerid,COLOR_RED,"/drugsget [1-10]");
if(pakete <= 0 || pakete > 10)return SendClientMessage(playerid,COLOR_RED,"/drugsget [1-10]");
if(GetPVarInt(playerid,"DrugsGet")+pakte > MAX_DRUGS_GET)return SendClientMessage(playerid,COLOR_RED,"Du kannst nicht mehr als "#MAX_DRUGS_GET" Pakete haben!");
if(pakete*DRUG_GET_PRICE < GetPlayerMoney(playerid))return SendClientMessage(playerid,COLOR_RED,"Du hast nicht genug Geld!");
GivePlayerMoney(playerid, pakete*DRUG_GET_PRICE);
SetPVarInt(playerid,"DrugsGet", GetPVarInt(playerid, "DrugsGet")+pakete);
return 1;
}
}