Post: how to loop mw2 functions [OnPlayerSpawned]
08-31-2015, 11:37 PM #1
Apex_Modz-
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); Just go to the main thread and look for onPlayerSpawned and do wht ive done below pretty easy

Credit goes to xCobraModzFTW(PlautGaming) for showing me and explaining this to me


void onPlayerSpawned(int clientIndex)
{
sleep(1000);
char buf[100];
_toc::stdc_snprintf(buf, 100, "Welcome [ %s ]", (char*)0x014E5408 + (clientIndex * 0x3700));
huds::SetMessage(clientIndex, buf, "Apex_Modz- SPRX Menu", 2048, 50, 7000, 1500, 255, 255, 255, 255, 17, 255, 0, 255);
_toc::SV_GameSendServerCommand(clientIndex, 0, "o \"mp_level_up\"");
char dest[100];
_toc::stdc_snprintf(dest, 100, "^2DudeCanMods Awesome SPRX Base! Press [{+actionslot 1}] For Menu");
_toc::iPrintln(clientIndex, dest);

if (RedBoxes_[clientIndex] == true)
{
RedBoxes(clientIndex);
RedBoxes(clientIndex);
}
if (LC[clientIndex] == true)
{
LittleCross(clientIndex);
LittleCross(clientIndex);
}
}
09-01-2015, 03:37 PM #2
Gj Smile
09-05-2015, 02:11 AM #3
Apex_Modz-
Do a barrel roll!
Thanks Smile
09-05-2015, 12:32 PM #4
SyGnUs
Give a F*** About Your Lifestyle
Originally posted by Apex
Just go to the main thread and look for onPlayerSpawned and do wht ive done below pretty easy

Credit goes to xCobraModzFTW(PlautGaming) for showing me and explaining this to me


void onPlayerSpawned(int clientIndex)
{
sleep(1000);
char buf[100];
_toc::stdc_snprintf(buf, 100, "Welcome [ %s ]", (char*)0x014E5408 + (clientIndex * 0x3700));
huds::SetMessage(clientIndex, buf, "Apex_Modz- SPRX Menu", 2048, 50, 7000, 1500, 255, 255, 255, 255, 17, 255, 0, 255);
_toc::SV_GameSendServerCommand(clientIndex, 0, "o \"mp_level_up\"");
char dest[100];
_toc::stdc_snprintf(dest, 100, "^2DudeCanMods Awesome SPRX Base! Press [{+actionslot 1}] For Menu");
_toc::iPrintln(clientIndex, dest);

if (RedBoxes_[clientIndex] == true)
{
RedBoxes(clientIndex);
RedBoxes(clientIndex);
}
if (LC[clientIndex] == true)
{
LittleCross(clientIndex);
LittleCross(clientIndex);
}
}


This is not like GSC where everyone is just going to have OnPlayerSpawned in there threads, you should be more thorough when you make things like this as not everyone is going to be using the same thing you are using. Besides your better off using hooks.
09-06-2015, 04:16 PM #5
ItsLollo1000
Little One
What the fuck is this code??? U can't be true hahahah

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

itsSorrow, WannaSmex_

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo