Quote:
Originally Posted by Backstabnoob
No, I told you what to do.
|
i did, but it show me that: (
8.2222:8)
PHP Code:
new Float: timeleft, minutes, seconds;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd( "say /open", "CmdOpen" );
}
public CmdOpen( client )
{
new ent = -1, szName[ 32 ];
new timeleft = get_gametime();
minutes = timeleft / 60;
seconds = timeleft % 60;
if ( client ) get_user_name( client, szName, charsmax( szName ) );
while ( ( ent = fm_find_ent_by_class( ent, "func_door" ) ) )
dllfunc( DLLFunc_Use, ent, 0 );
if ( client ) client_print(0, print_chat, "%s has opened the cells, at (%i:%i)", szName, minutes, seconds );
return 1;
}