Код:
#include <a_samp>
#include <streamer>
#define PASTA_CONTAS "/Contas/%s.ini"
new PortaoClick;
new aname[MAX_PLAYER_NAME];
#if defined FILTERSCRIPT
#else
#endif
public OnGameModeInit()
{
PortaoClick = CreateObject(980, 321.5, -1188.1999511719, 77.900001525879, 0.0000, 0.0000, 218.0000);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext,"/abclick", true)==0){
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(strcmp(aname, "AutoClick", true) == 0){
MoveObject(PortaoClick,312, -1195.6999511719, 77.699996948242, 3.0, 0.0000, 0.0000, 218.0000);
SendClientMessage(playerid,0x607840AA, "Bem vindo AutoClick!");
return 1;
} else {
SendClientMessage(playerid,Vermelho,"Vocк nao й o AutoClick!");
}
return 1;
}
if (strcmp(cmdtext,"/fbclick", true)==0){
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(strcmp(aname, "AutoClick", true) == 0){
MoveObject(PortaoClick,321.5, -1188.1999511719, 77.900001525879, 3.0, 0.0000, 0.0000, 218.0000);
SendClientMessage(playerid,0x607840AA, "Atй Logo AutoClick!");
return 1;
} else {
SendClientMessage(playerid,Vermelho,"Vocк nao й o AutoClick!");
}
return 1;
}
Faltou definir file.