Post: [1.24/C#] onPlayerSpawned Function
04-18-2014, 07:36 PM #1
SnaY
Former Lead of GS
(adsbygoogle = window.adsbygoogle || []).push({}); Hey guys SnaY here Smile today i will release the onPlayerSpawned function for MW3 :p

If you want to use the function every time you spawn you need first too add this code somewhere on your project


    public static void onPlayerSpawned(int client)
{
if (PS3.Extension.ReadByte(0x001C0840 + ((uint)client * 0x3980)) == 1)
{
Thread.Sleep(2000);
RPC.iPrintlnBold(client, "^1Welcome ^2To ^3The ^4Modded ^5Lobby!");
RPC.iPrintln(client, "^2Press [{+melee}] to open the mod menu");
}
}


You can also use some typewriter functions etc Smile

Note: You need to use a background worker or a timer for it

how to call it:

    onPlayerSpawned(0)


Get the function on pastebin: You must login or register to view this content.


Enjoy


Credits:

Corey for the original function

The following 13 users say thank you to SnaY for this useful post:

Azus, EncepT, Im Not Boobdidas, kiwi_modz, Mango_Knife, OLDSCHOOLMODZHD, RaGE_LoLo69, Sal, Skunk Modz, Snoop, Fatality, zIExceptiion, zSunriseModz
07-20-2014, 08:59 PM #11
Mango_Knife
In my man cave
Originally posted by SnaY View Post
Hey guys SnaY here Smile today i will release the onPlayerSpawned function for MW3 :p

If you want to use the function every time you spawn you need first too add this code somewhere on your project


    public static void onPlayerSpawned(int client)
{
if (PS3.Extension.ReadByte(0x001C0840 + ((uint)client * 0x3980)) == 1)
{
Thread.Sleep(2000);
RPC.iPrintlnBold(client, "^1Welcome ^2To ^3The ^4Modded ^5Lobby!");
RPC.iPrintln(client, "^2Press [{+melee}] to open the mod menu");
}
}


You can also use some typewriter functions etc Smile

Note: You need to use a background worker or a timer for it

how to call it:

    onPlayerSpawned(0)


Get the function on pastebin: You must login or register to view this content.


Enjoy


Credits:

Corey for the original function


The correct offset is 0x0110d593
10-01-2014, 12:51 PM #12
Does anybody know which offset i need for spawning after death? ( allclients )
10-01-2014, 06:44 PM #13
Nevermind it works on player death. Only works for client0 tho
10-01-2014, 09:38 PM #14
Onplayerspawned (-1)??
Last edited by mrdarkblue ; 10-01-2014 at 09:43 PM.
10-01-2014, 09:41 PM #15
Originally posted by Knife View Post
The correct offset is 0x0110d593


Hey Mango, do you know what THE best way to make it for all clients without 17 timers Smile lol ( need it for à custom gamemode i'm building.
Last edited by mrdarkblue ; 10-01-2014 at 09:44 PM.
10-01-2014, 10:14 PM #16
Originally posted by mrdarkblue View Post
Hey Mango, do you know what THE best way to make it for all clients without 17 timers Smile lol ( need it for à custom gamemode i'm building.


Mango is banned .-.
10-02-2014, 10:28 AM #17
Originally posted by OLDSCHOOLMODZHD View Post
Mango is banned .-.


Too bad, hè was so active Smile
Anyway don't wanna a go completely off topic Smile can you help me with my question?
10-02-2014, 03:03 PM #18
Originally posted by mrdarkblue View Post
Too bad, hè was so active Smile
Anyway don't wanna a go completely off topic Smile can you help me with my question?


I believe if the G_Entity of a client is equal to zero they are dead and if its equal to one they are alive.
10-02-2014, 04:40 PM #19
[QUOT E=OLDSCHOOLMODZHD;6062924]I believe if the G_Entity of a client is equal to zero they are dead and if its equal to one they are alive.[/QUOTE]
Thanks for the reply. But How do i get it to work for all clients? What do you mean?

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo