[pawn]else if ( strcmp( cmd, "!buywep", true ) == 0 )
{
new tmp2[ 128 ], wep;
tmp = strtok( cmdtext, idx ), tmp2 = strtok( cmdtext, idx );
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "Please log-in to your account." );
else if ( !strlen( tmp2 ) ) SendClientMessage( playerid, COLOR_GREEN, "USAGE: !buywep [WeaponName/ID] [Ammo]" );
else
{
wep = FindWepIDFromString( tmp );
SetPlayerWeapon( playerid, wep, strval( tmp2 ) );
DecPlayerHandCash(playerid,1000);
}
return 1;
}[/pawn]