When Player Pause
#1

Код:
#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 !!!!!!!
Reply
#2

are you trying to make a include?
Reply
#3

I have its include :P
Reply
#4

Omg plz anyone help :P
Reply
#5

Which include are you using? Stop bumping and just wait for someone else to respond.
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)