When Player Pause - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: When Player Pause (
/showthread.php?tid=235684)
When Player Pause -
wheelman_WM - 06.03.2011
Код:
#include <a_samp>
#include <paused>
#define FILTERSCRIPT
#define COLOR_GOLD 0xB8860BAA
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" When Player Pause By Larsey123");
print("--------------------------------------\n");
}
public OnPlayerConnect(playerid)
{
P_OnPlayerConnect(playerid);
return 1;
}
public OnPlayerDisconnect(playerid)
{
P_OnPlayerDisconnect(playerid);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
P_OnPlayerRequestClass(playerid);
return 1;
}
public OnPlayerSpawn(playerid)
{
P_OnPlayerSpawn(playerid);
}
public OnPlayerUpdate(playerid)
{
P_OnPlayerUpdate(playerid);
return 1;
}
public OnPlayerPause(playerid)
{
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s is now AFK.",name);
SendClientMessageToAll(COLOR_GOLD, string);
return 0;
}
public OnPlayerUnPause(playerid)
{
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s is BACK.",name);
SendClientMessageToAll(COLOR_GOLD, string);
return 0;
}
Its doesnt send message to all that player is now afk or back idk whats the problem plz anyone correct !!!!!!!
Re: When Player Pause -
YungGee - 06.03.2011
are you trying to make a include?
Re: When Player Pause -
wheelman_WM - 06.03.2011
I have its include :P
Re: When Player Pause -
wheelman_WM - 06.03.2011
Omg plz anyone help :P
Re: When Player Pause -
Calgon - 06.03.2011
Which include are you using? Stop bumping and just wait for someone else to respond.
Re: When Player Pause -
wheelman_WM - 06.03.2011
Well its fine i fixed it and bro i posted this topic at morning so i was wondering when i lll get any response.
Locked