![]() |
|
[Pawn] How to detect sampcac - Printable Version +- open.mp forum (https://forum.open.mp) +-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) +--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) +--- Thread: [Pawn] How to detect sampcac (/showthread.php?tid=1643) |
How to detect sampcac - sampaux - 2021-02-06 I need a script to detect if the player is using sampcac
I try to use sampcac.inc and sampac.inc, but I have no idea how to use this
RE: How to detect sampcac - destiezk - 2021-02-20 if you still need it: Code: 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);
return 1;
} |