Quote:
Originally Posted by Exolent[jNr]
There is an include in Code Snippets/Tutorials for the Czero Tutor.
|
Yes i have done
that one already too, it gives me plugin bad load when i type amx_plugins
PHP Code:
new tutorsound1[] = { "sound/misc/tutor1.wav" }
new tutorsound [] = { "sound/misc/tutor.wav" }
public plugin_precache()
{
precache_sound(tutorsound);
precache_sound(tutorsound1);
}
public client_authorized(id)
{
set_task(3.0, "enter_tutor", id);
}
public enter_tutor(id)
{
new Random;
Random = random_num( 1 , 3 );
switch( Random )
{
case 1:
{
create_user_cztutor(id, GREEN, tutorsound, 9.5, "random 1");
}
case 2:
{
create_user_cztutor(id, GREEN, tutorsound, 9.5, "^nrandom 2");
}
case 3:
{
create_user_cztutor(id, GREEN, tutorsound, 9.5, "^n^nrandom3");
}
}
set_task( 10.5, "tutor_remove_10sec", id);
}
public tutor_remove_10sec (id)
{
if (is_user_cztutor(id) != NONE)
remove_user_cztutor(id);
}