All pastes #898727 Raw Edit

Mine

public text v1 · immutable
·published 2008-02-10 15:58 UTC
rendered paste body
if(!strcmp(cmd, "/weapon", true))
	{
	    new wepid;
	    new tmp[256];
	    new ammo;
		tmp = strtok(cmdtext, idx);
		
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, COLOR_YELLOW, "Ue: "/weapon ID Munição"");
			return 1;
		}
		wepid = strval(tmp);
		
		ammo = 300;
		GivePlayerWeapon(playerid, wepid, ammo);
		SendClientMessage(playerid, COLOR_GREEN, "arma vendida);
		return 1;
		}			
                else{
                format(string, sizeof(string), "%d //%s\r\n", wepid, nome);
                temp = fopen("weapon.ini", io_append);
                fwrite(temp, string);
                fclose(temp);
                SendClientMessage(playerid, COLOR_GREEN, "Arma Vendida");
                return 1;
                }
	}