Post: SV_GameSendServerCommand ( C# Source - Update 1.05 )
11-21-2013, 11:45 PM #1
Gendjisan
A.k.a. Bushigan
(adsbygoogle = window.adsbygoogle || []).push({}); Updated for 1.05 update

Little update from the latest post by Seb5594...

You must login or register to view this content.


SV_GameSendServerCommand :

    
private static byte[] WritePPC = new byte[] { 0x38, 0x60, 0x00, 0x00, 0x38, 0x80, 0x00, 0x00, 0x3C, 0xA0, 0x10, 0x05, 0x48, 0x32, 0xB0, 0xF1, 0x48, 0x00, 0x00, 0x88 };
private static byte[] ResetPPC = new byte[] { 0x3C, 0x60, 0x01, 0x44, 0x80, 0x63, 0x41, 0xB0, 0x88, 0x63, 0x00, 0x0C, 0x2C, 0x03, 0x00, 0x00, 0x41, 0x82, 0x00, 0x88 };
public void SV_GameSendServerCommand(int Client, string Command)
{
WritePPC[3] = Convert.ToByte(Client);
PS3.SetMemory(0x10050000, Encoding.ASCII.GetBytes(Command + "\0"));
PS3.SetMemory(0x35D5B8, WritePPC);
Thread.Sleep(15);
PS3.SetMemory(0x35D5B8, ResetPPC);
}


Some commands :

    
private void iPrintln(int client, string TextiPrintIn)
{
SV_GameSendServerCommand(client, "c \"" + TextiPrintIn + "\"");
}


    
private void iPrintlnBold(int clientNumber, string TextiPrintinBold)
{
SV_GameSendServerCommand(clientNumber, "e \"" + TextiPrintinBold + "\"");
}


    
private void VisionSetNaked(string Vision)
{
SV_GameSendServerCommand(-1, "J \"" + Vision + "\"");
}


Some visions :


ac130
ac130_enhanced
ac130_enhanced_mp
ac130_inverted
ac130_thermal
aftermath
black_bw
cheat_bw
coup_sunblind
default_night
default_night_mp
end_game
mpnuke
mpnuke_aftermath
mpoutro
near_death
near_death_mp


Originally posted by SC58 View Post
Here some commands stuff

    q 13 90 = q cg_fov 90
n 10109 = beginnging sound on game
n 5161 = guy saying "free for all"
d 958 "mpintro" 0
n 10299 = guy says "time to work ghost squad"
g "MP_CHANGE_CLASS_NEXT_SPAWN"


q is still the dvar command but the dvars are number so ya...:plank:


Enjoy =D
Last edited by Gendjisan ; 12-05-2013 at 01:19 PM. Reason: Updated for 1.05 update

The following 18 users say thank you to Gendjisan for this useful post:

ϟ c0rruption ϟ, AlexNGU, Asian, FAKA_ELITE, Mango_Knife, MegaMister, MODZ4FUN420, NSV, Phreaker, SeeNoKey, tenoob, The End, ThePaaqoHD, worrorfight, xMGMoDz, ZeiiKeN
11-21-2013, 11:45 PM #2
Well then, this will be useful. Thanks, old friend.

The following user thanked The End for this useful post:

Gendjisan
11-21-2013, 11:58 PM #3
SC58
Former Staff
Here some commands stuff

    q 13 90 = q cg_fov 90
n 10109 = beginnging sound on game
n 5161 = guy saying "free for all"
d 958 "mpintro" 0
n 10299 = guy says "time to work ghost squad"
g "MP_CHANGE_CLASS_NEXT_SPAWN"


q is still the dvar command but the dvars are number so ya...:plank:

The following 5 users say thank you to SC58 for this useful post:

Authority Modz, FAKA_ELITE, Gendjisan, InfinityISB4CK, worrorfight
11-22-2013, 12:00 AM #4
Gendjisan
A.k.a. Bushigan
Originally posted by SC58 View Post
Here some commands stuff

    q 13 90 = q cg_fov 90
n 10109 = beginnging sound on game
n 5161 = guy saying "free for all"
d 958 "mpintro" 0
n 10299 = guy says "time to work ghost squad"
g "MP_CHANGE_CLASS_NEXT_SPAWN"


q is still the dvar command but the dvars are number so ya...:plank:


Yeah i known will update your CBuf addtext too soon Winky Winky
11-22-2013, 03:28 PM #5
The only problem there could be with this is that it only supports clients 0-11, you can't use -1 with this one. (correct me if I'm wrong).
in case anyone is interested, mine is like this:
    
public void SV_GameSendServerCommand(int client, string command)
{
byte[] buff = BitConverter.GetBytes(client);
PS3.SetMemory(0x2000000, StringToByteArray(command + "\0"));
PS3.SetMemory(0x035CD78, new byte[] { 0x38, 0x60, buff[1], buff[0], 0x38, 0x80, 0x00, 0x00, 0x3C, 0xA0, 0x02, 0x00, 0x48, 0x2a, 0x1f, 0x65, 0x40 });
System.Threading.Thread.Sleep(15);
PS3.SetMemory(0x2000000, new byte[100]);
PS3.SetMemory(0x035CD78, new byte[] { 0x3C, 0x60, 0x01, 0x44, 0x80, 0x63, 0x41, 0xb0, 0x88, 0x63, 0x00, 0x0C, 0x2C, 0x03, 0x00, 0x00, 0x41 });
}

The following user thanked Anera for this useful post:

Mango_Knife
11-22-2013, 05:51 PM #6
Mango_Knife
In my man cave
Originally posted by SC58 View Post
Here some commands stuff

    q 13 90 = q cg_fov 90
n 10109 = beginnging sound on game
n 5161 = guy saying "free for all"
d 958 "mpintro" 0
n 10299 = guy says "time to work ghost squad"
g "MP_CHANGE_CLASS_NEXT_SPAWN"


q is still the dvar command but the dvars are number so ya...:plank:


Can you explain me what is that?>
g "MP_CHANGE_CLASS_NEXT_SPAWN
11-23-2013, 03:41 AM #7
SC58
Former Staff
Originally posted by Knife View Post
Can you explain me what is that?>
g "MP_CHANGE_CLASS_NEXT_SPAWN


whats its says it does :p
11-23-2013, 08:00 AM #8
Mango_Knife
In my man cave
Originally posted by SC58 View Post
whats its says it does :p


Ok...
11-24-2013, 05:44 AM #9
I got an error thread not does not exist in context
11-27-2013, 12:41 PM #10
Gendjisan
A.k.a. Bushigan
Updated for 1.05

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo