//////////////////////////////////////////
//( IT"S SERVER SYSTEM )
//////////////////////////////////////////
string IN_Command;
void GetPlayerInfo(string OUT_Command,int Namber)
{
iNetStringSend (OUT_Command, Namber, false);
}
void Main()
{
/*
SERVER SCRIPT PLACE
*/
string PlayerName;
string PlayerPlace;
GetPlayerInfo("cl_give_result",0);//command get result
//обработка данных ( String Process )
if (iNetStringReceive (IN_Command) > 0)
{
// get player namber (why give on server result) it's system used namber ( 1...9 ) NOT MORE !
iStringLeft (String Text_Namber, IN_Command, 1) ;
/*{
system of namber player you can make
}*/
// String Command for exsample (1_1_Sasha) - (it's = 1 (ID client) on (first place) (NickName) Sasha)
iStringMid (String Text_Place, IN_Command, 3, 1);//get player place
// SYSTEM GET USER NICKNAME
Int NameLine = iStringLen (IN_Command);
iStringMid (string Player_Name, IN_Command, 4, NameLine-4);
string Result=Player_Name+" : "+Text_Place;
Int Line = iStringLen (Result);
}
iStringMid (string OUT_player_Result, Result, 0, Line);
string OUT_Result=OUT_player_Result+"\r";
iPrint(OUT_Result,50,50,OBJ_X);
}
///****************************************************************************************
///****************************************************************************************
///CLIENT
string Command;
string out_cmd;
void Main();
{
/*
SYSTEM PLAYER PLACE
{}
YOU CAN MAKE ON COORDINATS ( END x y z coordinats )
*/
/*
{}
*/
/*
System MyID
*/
string MyID=(&&);//
string MyPlace=(&&);//
string MyNickName=(&&);//
out_cmd=MyID+MyPlace+MyNickName;
if (iNetStringReceive (Command) > 0) SysCommand(out_cmd);
}
void SysCommand(string sv_cmd)
{
if (sv_cmd="cl_give_result") iNetStringSend (out_cmd, 0, false);
}