if(offline)
{
ak47 0x17
}
else
{
ak47 0x18
}
if(offline)
{
ak47 0x17
}
else
{
ak47 0x18
}
public static void GiveWeapon(uint Client, int WeaponID)
{
PS3.WriteInt32(0x0110a4fc + (Client * 0x3980), WeaponID);
PS3.WriteInt32(0x0110a624 + (Client * 0x3980), WeaponID);
PS3.WriteInt32(0x0110a6a4 + (Client * 0x3980), WeaponID);
PS3.WriteInt32(0x0110a5f0 + (Client * 0x3980), WeaponID);
RPC.Call(0x18A29C, 0xFCA280 + (Client * 0x280), WeaponID, "", 9999, 9999);
}
.
int Value = 0;
byte[] buffer = new byte[100];
PS3.GetMemory(0x8360d5, ref buffer);
System.Text.ASCIIEncoding Encoding = new System.Text.ASCIIEncoding();
string Map = Encoding.GetString(buffer).Split(Convert.ToChar(0x5c))[6];
if (Map == "mp_seatown" | Map == "mp_plaza2" | Map == "mp_exchange" | Map == "mp_bootleg" | Map == "mp_alpha" | Map == "mp_village" | Map == "mp_bravo" | Map == "mp_courtyard_ss" | Map == "mp_aground_ss")
Value = -1;
else
Value = 0;
if (PS3.ReadInt(0xFCA41D + ((uint)dataGridView1.CurrentRow.Index * 0x280)) > 0) // Cheacks If Client Is Alive
{
GiveWeapon((uint)dataGridView1.CurrentRow.Index, 28 + Value);//acr
}
public static void GiveWeapon(uint Client, int WeaponID)
{
PS3.WriteInt32(0x0110a4fc + (Client * 0x3980), WeaponID);
PS3.WriteInt32(0x0110a624 + (Client * 0x3980), WeaponID);
PS3.WriteInt32(0x0110a6a4 + (Client * 0x3980), WeaponID);
PS3.WriteInt32(0x0110a5f0 + (Client * 0x3980), WeaponID);
RPC.Call(0x18A29C, 0xFCA280 + (Client * 0x280), WeaponID, "", 9999, 9999);
}
.
int Value = 0;
byte[] buffer = new byte[100];
PS3.GetMemory(0x8360d5, ref buffer);
System.Text.ASCIIEncoding Encoding = new System.Text.ASCIIEncoding();
string Map = Encoding.GetString(buffer).Split(Convert.ToChar(0x5c))[6];
if (Map == "mp_seatown" | Map == "mp_plaza2" | Map == "mp_exchange" | Map == "mp_bootleg" | Map == "mp_alpha" | Map == "mp_village" | Map == "mp_bravo" | Map == "mp_courtyard_ss" | Map == "mp_aground_ss")
Value = -1;
else
Value = 0;
if (PS3.ReadInt(0xFCA41D + ((uint)dataGridView1.CurrentRow.Index * 0x280)) > 0) // Cheacks If Client Is Alive
{
GiveWeapon((uint)dataGridView1.CurrentRow.Index, 28 + Value);//acr
}
I should have said, I am using OSM's sprax menu base so its in C++ - so am I right in thinking the following should work;
if (Func::MapName() == "mp_seatown" | Func::MapName() == "mp_plaza2" | Func::MapName() == "mp_exchange" | Func::MapName() == "mp_bootleg" |Func:: MapName() == "mp_alpha" | Func::MapName() == "mp_village" | Func::MapName() == "mp_bravo" | Func::MapName() == "mp_courtyard_ss" | Func::MapName() == "mp_aground_ss")
{
Weapons::GiveWeapon(client, (0x00, 0x00, 0x17));
Func::iPrintln(client, "^2[AK-47] ^7Given");
}
else
{
Weapons::GiveWeapon(client, (0x00, 0x00, 0x1
);
Func::iPrintln(client, "^2[AK-47] ^7Given");
}
Also, there are offsets for pri/sec/tac/lethals but sebs func doesn't have and offsets and yours dont match up so m=now I'm very confused
Copyright © 2026, NextGenUpdate.
All Rights Reserved.