Post: [C++/1.14] onPlayerSpawned
08-07-2014, 12:10 AM #1
Taylor
Former Black Knight.
(adsbygoogle = window.adsbygoogle || []).push({});


Hello everybody! This is sort of a ghetto onPlayerSpawn function. However, it works fine for what I need it for. :p Thanks to seb for the Player Alive offset in G_Client.

Here you go:
    
bool WelcomeDisplayed[18];
void onPlayerSpawned()
{
for(;Winky Winky
{
for(int i = 0; i < 18; i++)
{
if(*(int*)(G_Client(i) + 0x345C) == 0x00)
{
if(!WelcomeDisplayed[i])
{
sleep(250);
/*
Things you want on spawn here
*/
WelcomeDisplayed[i] = true;
}
}
else
WelcomeDisplayed[i] = false;
}
}
}


You also need this:
    
int G_Client(int client)
{
return (0x14E2200 + (0x3700 * client));
}


Note: Only run this once. As it already is in a for loop.

(adsbygoogle = window.adsbygoogle || []).push({});

The following 17 users say thank you to Taylor for this useful post:

-JM-, BigTrain, CanadianModding, Connerg123, Dan Dactyl, EcLiPz_MoDD3Rz, JLM, HighModzz, Im Not Boobdidas, ImPiffHD, oStankyModz, MysteryAviate, QuantumDev, ShutTheCrunchUp, Turk_Warrior, Zambie
10-02-2014, 07:33 PM #29
Taylor
Former Black Knight.
Originally posted by CexRTM View Post
Taylor Why So Sexy Bae?


What? :p
10-02-2014, 08:03 PM #30
Taylor do you now why SPRX don't load on my ps3? I have 4.50 ita dex
10-11-2014, 11:41 PM #31
Thanks for this Taylor Enzo very useful Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo