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

Quote:
Originally Posted by leonardo1434
View Post
this may work.
pawn Code:
cmd(world, playerid, params[])
{
     new
         mvID,
         time
     ;
     if(time > gettime()) return SendClientMessage(playerid,-1,"You must wait 3 minutes to use it again");
     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, " " ); // for what are u using that?
     time = gettime() + 60*3;
     return 1;
}
pawn Code:
for ( new i = 0; i < 92; i++ ) SendClientMessage( playerid, -1, " " );
pawn Code:
for ( new i = 0; i < 6; i++ ) SendClientMessage( playerid, -1, " " ); // for what are u using that?


i use that for clear all the chat... and 6 lines below the message, then the message will be sent..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)