20.02.2009, 15:33
Quote:
Originally Posted by ★ ♫ • Littlejohny • ♫ ★
I know but its all the same
- LJ |
pawn Код:
dcmd_settime(playerid,params[])
{
if ( !IsPlayerAdmin( playerid ) ) return SendClientMessage( playerid, COLOR_RED, "ERROR: You must be a Admin to use this Command !" );
if ( !params[ 0 ] ) return SendClientMessage( playerid, COLOR_RED, "ERROR: /settime [hour]" );
if ( !IsNumeric( params ) ) return SendClientMessage( playerid, COLOR_RED, "ERROR: The 'hour' parameter must be numerical" );
new
string[ 70 ],
h = strval( params );
if ( h < 0 || h > 24 ) return SendClientMessage( playerid, COLOR_RED, "ERROR: Use a number from 0 to 24" );
SetWorldTime( h );
format( string, sizeof( string ), "Admin %s has change the Time to %d !", GetName(playerid), h );
SendClientMessageToAll( COLOR_HERE?????, string );
return 1;
}