Nézzük csak meg a weboldalamat... hmmm miket látok.. oppá:
#include a_samp
new pName[MAX_PLAYER_NAME],stringname[200], name[MAX_PLAYER_NAME];
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/afk-on\", cmdtext, true) == 0)
{
SendClientMessage(playerid,0x99FF00AA,\"Ha visszajöttél /afk-off\");
TogglePlayerControllable(playerid, 0);
GetPlayerName(playerid, name, sizeof name);
GetPlayerName(playerid, pName, sizeof pName);
format(stringname, sizeof stringname, \"[AFK]%s\", pName);
SetPlayerName(playerid, stringname);
return 1;
}
if (strcmp(\"/afk-off\", cmdtext, true) == 0)
{
TogglePlayerControllable(playerid, 1);
SetPlayerName(playerid, name);
return 1;
}
return 0;
}
http://sa-mp.gportal.hu/gindex.php?pg=33257183és még hogy a tiéd