I went so far. How can you save? Would you describe it to me?
#include <a_samp>
#include <sscanf2>
#include <zcmd>
#include <dini>
#define COLOR_WHITE 0xFFFFFFAA
//
new Names[MAX_PLAYERS][3];
//
public OnFilterScriptInit()
{
ShowNameTags ( 0 ) ;
return 1;
}
CMD:bemutatkoz(playerid, params[])
{
new ID;
#pragma tabsize 0
new string[200], item[32];
new mName[MAX_PLAYER_NAME];
new pName[MAX_PLAYER_NAME];
new Float:X, Float: Y, Float:Z;
if(sscanf(params, "u",item, ID)) return SendClientMessage(playerid, -1, "Hasznбlat: /bemutatkozas neki ID/Nйv");
GetPlayerPos(playerid, X, Y, Z);
if(!IsPlayerInRangeOfPoint(ID, 5.0, X, Y, Z)) return SendClientMessage(playerid, -1, "Nincs a megadott jбtйkos a kцzeledben!");
if(strcmp(item,"neki",true) == 0) {
if (sscanf(params, "s[32]u",item, ID)) return SendClientMessage(playerid, -1, "Hasznбlat: /bemutatkozбs neki [ID/Nйv]");
GetPlayerName(playerid, mName, sizeof(mName));
GetPlayerName(ID, pName, sizeof(pName));
format(string, sizeof(string), "(( %s szeretne az ismerősцd lenni. ))", mName);
SendClientMessage(ID, COLOR_WHITE, string);
SendClientMessage(ID, COLOR_WHITE, "(( Bemutatkozбshoz: /bemutatkozas");
format(string, sizeof(string), "(( Felajбnlottad hogy szeretnйl bemutatkozni %s-nak", pName);
SendClientMessage(playerid, COLOR_WHITE, string);
Names[ID][0] = 1;
}
return 1;
}
CMD:bemutatkozas(playerid, params[])
{
new ID;
#pragma tabsize 0
new string[200];
new mName[MAX_PLAYER_NAME];
new pName[MAX_PLAYER_NAME];
// new Float: X, Float: Y, Float: Z;
if(Names[playerid][0] == 1)
{
SendClientMessage(playerid, -1, "(( Bemutatkoztбl valakinek! ))");
GetPlayerName(playerid, mName, 24);
GetPlayerName(ID, pName, 24);
format( string, sizeof ( string ), "(( %s bemutatkozott neked. ))", mName);
SendClientMessage( ID, -1, string );
ShowPlayerNameTagForPlayer(playerid, ID, true);
ShowPlayerNameTagForPlayer(ID, playerid, true);
}