21.03.2011, 19:32
I have encountered a problem.
This function restores player weapons after loggin back into game on players first spawn.
The problem is, this function bans me
pawn Код:
public LoadWeapons(playerid)
{
new accname[128], weapon[128];
format(accname, sizeof(accname), "GP/Konta/%s.ini", GetName(playerid));
new weapons[13][2];
for(new i = 0; i < 13; i++)
{
format(weapon, sizeof(weapon), "Weapon%d", i); weapons[i][0] = djInt(accname, weapon);
format(weapon, sizeof(weapon), "Weapon%dAmmo", i); weapons[i][1] = djInt(accname, weapon);
GivePlayerWeapon(playerid, weapons[i][0], weapons[i][1]);
SetPVarInt(playerid, "Weapons", 1);
}
return 1;
}
The problem is, this function bans me