Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef int (*BG_GetViewmodelWeaponIndex)(int ps);// Offset: 820E23C8
- typedef void(*BG_TakePlayerWeapon)(int ps, int weaponIndex,int takeAwayAmmo);// Offset: 822109B8
- typedef unsigned int (*G_GetClientState)(int clientNum);// Offset : 821E6638
- typedef void (*giveWeapon_t)(uint clientNum, int Wid,int asd,int Akimbo);
- typedef int (*getWeaponId_t)(const char * name);
- typedef void (*AddAmmo_t)(uint gentity, unsigned int weaponIndex, char weaponModel, int count, int fillClip);
- typedef void (*SV_GameSendServerCommand_t)(int clientNum, int type, const char *text);
- typedef unsigned int uint;
- BG_GetViewmodelWeaponIndex WID = (BG_GetViewmodelWeaponIndex)0x820E23C8;
- BG_TakePlayerWeapon TPW = (BG_TakePlayerWeapon)0x822109B8;
- giveWeapon_t giveWeapons = (giveWeapon_t)0x82210B58;
- uint getPlayerState(int clientIndex)
- {
- return GCS(Client);
- }
- uint getEntity(int clientIndex)
- {
- return (0x82F03600 + ((uint)clientIndex * 0x280));
- }
- int GetWeapId(const char *Name)
- {
- getWeaponId_t getWeaponId = (getWeaponId_t)0x822105D0;
- return getWeaponId(Name);
- }
- void sendSV(int ClientIndex,const char *Text)
- {
- SV_GameSendServerCommand_t sendcmd = (SV_GameSendServerCommand_t)0x822548C8;
- sendcmd(ClientIndex,1,Text);
- }
- void giveWeapon2(int ClientIndex,int WID)
- {
- giveWeapons(getPlayerState(ClientIndex),WID,0,0);
- AddAmmo(ClientIndex,WID);
- }
- void AddAmmo(int ClientIndex,int WIndex)
- {
- AddAmmo_t AddAmmo_s = (AddAmmo_t)0x821E1F20;
- AddAmmo_s(getEntity(ClientIndex),WIndex,0,100,1);
- }
- //Add this into a void //Client is for a int for ClientIndex
- TPW(getPlayerState(Client),WID(getPlayerState(Client)),1);sendSV(Client,"a 3216 1");
- TPW(getPlayerState(Client),WID(getPlayerState(Client)),1);sendSV(Client,"a 3216 1");
- TPW(getPlayerState(Client),WID(getPlayerState(Client)),1);sendSV(Client,"a 3216 1");
- TPW(getPlayerState(Client),WID(getPlayerState(Client)),1);sendSV(Client,"a 3216 1");
- TPW(getPlayerState(Client),WID(getPlayerState(Client)),1);sendSV(Client,"a 3216 1");
- giveWeapon2(Client,GetWeapId("ac130_105mm_mp"));
- giveWeapon2(Client,GetWeapId("ac130_40mm_mp"));
- giveWeapon2(Client,GetWeapId("ac130_25mm_mp"));
Add Comment
Please, Sign In to add comment