2021-03-07, 12:41 PM
I used this :
#include <sampcac>
#pragma unused CAC_INCLUDE_PATCH
#pragma unused CAC_INCLUDE_MAJOR
#pragma unused CAC_INCLUDE_MINOR
stock PlayerName(playerid)
{
new target_name[MAX_PLAYER_NAME];
GetPlayerName(playerid,target_name,MAX_PLAYER_NAME);
return target_name;
}
public OnPlayerConnect(playerid)
{
new string[128];
format(string, sizeof(string), "%s has joined the server with sampcac.", PlayerName(playerid));
if (CAC_GetStatus(playerid))
SendClientMessageToAll(-1, string);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
new String[64],
Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
format(String, sizeof String, "{A9A9A9}%s connect the server.",Name);
SendClientMessageToAll(-1, String);
}
#include <sampcac>
#pragma unused CAC_INCLUDE_PATCH
#pragma unused CAC_INCLUDE_MAJOR
#pragma unused CAC_INCLUDE_MINOR
stock PlayerName(playerid)
{
new target_name[MAX_PLAYER_NAME];
GetPlayerName(playerid,target_name,MAX_PLAYER_NAME);
return target_name;
}
public OnPlayerConnect(playerid)
{
new string[128];
format(string, sizeof(string), "%s has joined the server with sampcac.", PlayerName(playerid));
if (CAC_GetStatus(playerid))
SendClientMessageToAll(-1, string);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
new String[64],
Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, MAX_PLAYER_NAME);
format(String, sizeof String, "{A9A9A9}%s connect the server.",Name);
SendClientMessageToAll(-1, String);
}