Problem
#5

Try this:
Код:
new Text3D:AFKLabel[MAX_PLAYERS] // Add this ABOVE OnFilterScriptInit() or OnGameModeInit()
public OnPlayerPause(playerid) 
{ 
    new name[MAX_PLAYER_NAME], string[44];
     
    GetPlayerName(playerid, name, sizeof(name)); 
    format(string, sizeof(string), "%s has Paused",name);
    AFKLabel[playerid] = Create3DTextLabel("Player is AFK",0xFFFF00AA,0,0,0,50,-1,1);
    Attach3DTextLabelToPlayer(AFKLabel[playerid], playerid, 0,0,0);    
    SendClientMessageToAll(COLOR_LIGHTBLUE, string); 
    return 0; 
} 

public OnPlayerUnPause(playerid) 
{ 
    new name[MAX_PLAYER_NAME], string[44]; 
    GetPlayerName(playerid, name, sizeof(name)); 
    format(string, sizeof(string), "%s has Returned",name);
    Delete3DTextLabel(AFKLabel[playerid]); 
    SendClientMessageToAll(COLOR_LIGHTBLUE, string); 
    return 0; 
}
Reply


Messages In This Thread
Problem - by Aira - 29.11.2011, 11:30
Re: Problem - by English-Conceptz - 29.11.2011, 12:02
Re: Problem - by Aira - 29.11.2011, 12:10
Re: Problem - by English-Conceptz - 29.11.2011, 12:15
Re: Problem - by Thresholdold - 29.11.2011, 12:15
Re: Problem - by Aira - 29.11.2011, 14:51

Forum Jump:


Users browsing this thread: 1 Guest(s)