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
04-18-2014, 09:53 PM #2
zSunriseModz
Climbing up the ladder
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


Good job buddy! :wub:
04-18-2014, 11:50 PM #3
Thanks man Winky Winky
04-29-2014, 03:20 PM #4
Wow very nice !!! Can you add a little example source file?
Having trouble calling function Smile
04-29-2014, 04:22 PM #5
Mango_Knife
In my man cave
Originally posted by mrdarkblue View Post
Wow very nice !!! Can you add a little example source file?
Having trouble calling function Smile


onPlayerSpawned(0); //- 0 = Client number.
04-30-2014, 02:13 PM #6
Thx Bro !!
05-05-2014, 01:11 AM #7
Im Not Boobdidas
Do a barrel roll!
Nice Happy
05-19-2014, 06:27 PM #8
hello SNAY tried to make a spawn trap eboot S& d with xpl for CEX, because what I found are for DEX, truancestor used to decrypt, eboot.bin ,eboot builder to cex, it worked, but only spawn trap, the xpl disappeared, and every time I put the xpl this eboot transformed to cex he returned dont work.Im used xPreeKs, Ghost Rolly and other and work unable to CEX, but friends can not join me and to not give them join.
'm Sorry NOOB on mods, but can someone help me or post a eboot cex xpl / spawn trap
06-13-2014, 01:03 AM #9
Azus
Little One
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


m8 why you no do this:

    public static void onPlayerSpawned(int client, string input, string input1)
{
if (PS3.Extension.ReadByte(0x001C0840 + ((uint)client * 0x3980)) == 1)
{
Thread.Sleep(2000);
RPC.iPrintlnBold(client, input);
RPC.iPrintln(client, input1);
}
}


and then call like this:
    onPlayerSpawned(0, "SnaYp00p", "Azusp00p")

tears

The following user thanked Azus for this useful post:

06-13-2014, 01:20 AM #10
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

You could also do something like this:
    
public static void onPlayerSpawned(int client, Action action)
{
if (PS3.Extension.ReadByte(0x001C0840 + ((uint)client * 0x3980)) == 1)
{
action();
}
}


and you can call something like this:
    
onPlayerSpawned(Client, () => iPrintLn(Client, "Test!"));


*Haven't tested it, but should work!

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

Mango_Knife, SnaY

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo