04.02.2012, 15:14
hi,
could someone please show me how i would convert this system using pvars to normal variables?
That would be great, i tried much but it didnt work...
could someone please show me how i would convert this system using pvars to normal variables?
That would be great, i tried much but it didnt work...
pawn Код:
ttemp[i] = 0;
for(new w = 0; w < 13; w++)
{
GetPlayerWeaponData(i, w ,cwep ,camo);
format(cstringw,sizeof(cstringw),"wslot%d",w);
if(GetPVarInt(i,cstringw) != cwep && camo != 0)
{
ttemp[i]++;
}
}
if(ttemp[i] != 0)
{
//weapon hacks detected!
}
stock GiveWeapon(playerid,weapon,ammo)
{
new wstr[10];
format(wstr,sizeof(wstr),"wslot%d",GetWeaponSlot(weapon));
SetPVarInt(playerid,wstr,weapon);
GivePlayerWeapon(playerid,weapon,ammo);
return 1;
}