[pawn] else if(strcmp(cmd,"buycolt",true) == 0)
{
new param[256];
param = strtok(cmdtext,idx);
new cash;
cash = GetPlayerMoney(playerid);
if(strcmp(param,"buycolt",true) == 0)
if(cash >= 1500)
{
SetPlayerWeapon(playerid,17,200);
SendClientMessage(playerid,RED,"Compraste una colt");
DecPlayerHandCash(playerid,1500);
}[/pawn]
this command give to you a colt you change the name of command and SetplayerWeapon example
[pawn] else if(strcmp(cmd,"buyuzi",true) == 0)
{
new param[256];
param = strtok(cmdtext,idx);
new cash;
cash = GetPlayerMoney(playerid);
if(strcmp(param,"buyuzi",true) == 0)
if(cash >= 1500)
{
SetPlayerWeapon(playerid,23,200);
SendClientMessage(playerid,RED,"Compraste una uzi");
DecPlayerHandCash(playerid,1500);
}[/pawn]