Player Offline command
#1

Hello!
There is any way to ingame modify an .ini account if the player is offline?
Or to chek something in the .ini account if the player is offline?

Example: I was trying to chek last player's login with a command,but it is working only if the player is online.

Код:
CMD:online(playerid, params[])
{
	new	pLastOn[ 20 + 20 ];
	new	OnlineString[ 128 ];
	new pLastOnName[ 24 ];

	if ( sscanf( params, "u", params[ 0 ], params[ 1 ] ) )
	    return SendClientMessage( playerid, -1, "Usage: /online [id/name]");

    GetPVarString( params[ 0 ], "On", pLastOn, sizeof pLastOn );
    GetPlayerName( params[ 0 ],pLastOnName,sizeof(pLastOnName));

	format( OnlineString,sizeof(OnlineString),"["REDSV"%s"BLUESV"] last Online time is "REDSV"%s.",pLastOnName,pLastOn);
	SCM(playerid,BLUES,OnlineString);
	return 1;
}
Reply


Messages In This Thread
Player Offline command - by SumX - 14.08.2012, 07:14
Re: Player Offline command - by JaKe Elite - 14.08.2012, 08:46
Re: Player Offline command - by [MM]RoXoR[FS] - 14.08.2012, 09:21

Forum Jump:


Users browsing this thread: 1 Guest(s)