12.07.2011, 10:30
pawn Код:
/*
A quick filterscript
*/
#include < a_samp >
new
gTimer[ MAX_PLAYERS ]
;
public OnPlayerConnect( playerid )
{
gTimer[ playerid ] = SetTimerEx( "MoneyToScore", 1000, true, "i", playerid );
return 1;
}
public OnPlayerCommandText( playerid, cmdtext[ ] )
{
if ( !strcmp( cmdtext, "/null", true ) )
return ResetPlayerMoney( playerid ), 1;
return 0;
}
forward MoneyToScore( playerid );
public MoneyToScore( playerid )
{
SetPlayerScore( playerid, GetPlayerMoney( playerid ) );
return 1;
}