07.01.2016, 00:52
Alguem pode me mandar um script assim que equpe a todos da org, pode ser resumido sу pra ter uma base de como ficaria o code na hora de carregar o arquivo e equipar, porfavor
// Open "file.txt" in "read only" mode
new File:handle = fopen("file.txt", io_read),
// Initialize "buf"
buf[128];
// Check, if the file is opened
if(handle)
{
// Success
// Read the whole file
while(fread(handle, buf)) print(buf);
// Close the file
fclose(handle);
}
else
{
// Error
print("The file \"file.txt\" does not exists, or can't be opened.");
bCini6_SetInt("Armas ORG.ini","Arma 1",ORG_Arma_1);
bCini6_SetInt("Armas ORG.ini","Balas arma 1",ORG_Arma_1);
bCini6_SetInt("Armas ORG.ini","Arma 2",ORG_Arma_2);
bCini6_SetInt("Armas ORG.ini","Balas arma 2",ORG_Arma_1);
bCini6_SetInt("Armas ORG.ini","Arma 3",ORG_Arma_3);
bCini6_SetInt("Armas ORG.ini","Balas arma 3",ORG_Arma_1);
GivePlayerWeapon(playerid,bCini6_ReadInt("Armas ORG.ini","Arma 1"),bCini6_ReadInt("Armas ORG.ini","Balas arma 1"));
GivePlayerWeapon(playerid,bCini6_ReadInt("Armas ORG.ini","Arma 2"),bCini6_ReadInt("Armas ORG.ini","Balas arma 2"));
GivePlayerWeapon(playerid,bCini6_ReadInt("Armas ORG.ini","Arma 3"),bCini6_ReadInt("Armas ORG.ini","Balas arma 3"));