Question Help: Command limited, with gettickcount or gettime
#1

how to perform this command with a limit.. with gettickcount or gettime ?

the command is usable only 3 minute.. send the message.. you can use that command only 3 minute...

pawn Code:
cmd(world, playerid, params[])
{
     new
         mvID
     ;

     if ( sscanf( params, "d", mvID ) ) return SendClientMessage( playerid, -1, "* usage /world id" );
     if ( mvID < 0 || mvID > 99 ) return SendClientMessage( playerid, -1, "* world id 0 - 99" );
     
     SetPlayerVirtualWorld( playerid, mvID );

     for ( new i = 0; i < 92; i++ ) SendClientMessage( playerid, -1, " " );
     
     format( string, sizeof ( string ), "* You are now in the virtual world %d", mvID );
     SendClientMessage( playerid, -1, string );
     
     for ( new i = 0; i < 6; i++ ) SendClientMessage( playerid, -1, " " );

     return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)