Is this server sided? [message #288734] |
Sat, 06 October 2007 08:07 |
|
mrãçķz
Messages: 3069 Registered: August 2007
Karma:
|
General (3 Stars) Permabanned for trying and failing DDoS |
|
|
hey guys is this server sided if i change
sprintf(message,"Msg %s Has Purchased A
to
sprintf(message,"Tmsg %s Has Purchased A
(i have it in my Server data folder, its in Kamuix.cpp)
or do the clients need to download it?
void Kamuix_Announce_Preset_Buy::Entered(GameObject *obj,GameObject *enter)
{
const char *preset;
int x;
int cost;
Vector3 spawn_position;
x = Get_Int_Parameter("Player_Type");
if (CheckPlayerType(enter,x))
{
return;
}
char message[1000];
preset = Get_Parameter("Preset_Name");
cost = Get_Int_Parameter("Cost");
if (cost <= Commands->Get_Money(enter))
{
cost = -cost;
spawn_position = Get_Vector3_Parameter("location");
Commands->Give_Money(enter,(float)cost,0);
Commands->Create_Object(preset,spawn_position);
sprintf(message,"Msg %s Has Purchased A %s",Get_Player_Name(enter),Get_Parameter("DisplayName"));
Console_Input(message);
}
else
{
sprintf(message,"ppage %d You do not have enouph money to purchase this!!",Get_Player_ID(enter));
Console_Input(message);
}
}
[Updated on: Sat, 06 October 2007 08:08] Report message to a moderator
|
|
|