02.07.2011, 20:23
pawn Код:
#include <a_samp>
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Mac's AFK System");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
SendMessage(playerid,GREEN, " Loading Mac's AFK System! ");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/AFK", cmdtext, true, 10) == 1)
{
SendClientMessage(playerid,ORANGE," %s is now AFK! ");
if (strcmp("/BACK", cmdtext, true, 10) == 1)
{
SendClientMessage(playerid,ORANGE," %s is now BACK! ");
}
return 0;
}