30.07.2012, 09:33
credits to MP2
this is SnG.Scot_MisCuDI old scripting helps
and get helps by MP2 . .
pawn Код:
#include a_samp
new PauseTime[MAX_PLAYERS];
public OnPlayerUpdate(playerid)
{
PauseTime[playerid] = gettime();
return 1;
}
public OnGameModeInit()
{
SetTimer("pausecheck", 4321, true);
return 1;
}
forward pausecheck();
public pausecheck()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
new PausedSeconds = gettime()-PauseTime[i];
if(PausedSeconds > 5)
SetPlayerChatBubble(i, "Paused", -1, 100.0, 5000);
}
return 1;
}
and get helps by MP2 . .