Post: [C++/1.24] onPlayerSpawned
09-09-2014, 07:54 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); -By Taylor-



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



    int G_Client(int client)
{
return (0x0110A280 + (0x3980* client));
}



Enzo
09-09-2014, 10:52 PM #2
though this would kinda work it would only show once.
09-10-2014, 09:30 AM #3
ItsLollo1000
Little One
Originally posted by JonnyWalker View Post
-By Taylor-



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



    int G_Client(int client)
{
return (0x0110A280 + (0x3980* client));
}



Enzo


No offence but these threads are so useless I mean just for get rep for a code that is now released on every call of duty in c# and I'm c++ just fucking release it for one cod and then just post the other ones in the same thread Winky Winky

The following 2 users say thank you to ItsLollo1000 for this useful post:

Joren, Swiss
09-10-2014, 10:11 AM #4
Maul du stricher, andere sind mir bestimmt dankbar.

The following user thanked JonnyWalker for this useful post:

zAlbanianModder
10-01-2014, 07:02 PM #5
Dan Dactyl
One Among The Fence
Pretty Much a Copy/Paste Of Another Thread That Has Already Been Posted

You must login or register to view this content.

Thread Closed

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo