Raised This Month: $ Target: $400
 0% 

[REQ] working czero tutor stock/include


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 04-28-2012 , 09:36   Re: [REQ] working czero tutor stock/include
Reply With Quote #9

Quote:
Originally Posted by Exolent[jNr] View Post
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);
 switch( 
Random 
 {     
  case 
1:
  {
   
create_user_cztutor(idGREENtutorsound9.5"random 1");
  }
  case 
2:
  {
   
create_user_cztutor(idGREENtutorsound9.5"^nrandom 2");
  }
  case 
3:
  {
   
create_user_cztutor(idGREENtutorsound9.5"^n^nrandom3");
  }
 }
 
set_task10.5"tutor_remove_10sec"id);
}
 
public 
tutor_remove_10sec (id)
{
 if (
is_user_cztutor(id) != NONE)
  
remove_user_cztutor(id);


Last edited by striker07; 04-28-2012 at 09:38.
striker07 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode