[Description]
This include able you to make advices with czero tutor!
Works ONLY in CS: Condition-Zero
OBS: I know that have another czero tutor inc, but that have so many erros.
- Put the file czerotutor.amxx in: amxmodx/plugins/
- Open the file amxmodx/configs/plugins.ini and write czerotutor.amxx
[Functions]
Code:
enum
{
NONE = 0,
RED,
BLUE,
YELLOW,
GREEN
}
/**
* Create a tutor
*
* @param id Player index.
* @param color Color of the text.
* @param sound Sound to play when display tutor.
* @param time Time to the tutor still alive.
* @param input Text to display in tutor.
* @return 1 on success, 0 otherwise.
*/
native create_user_cztutor(id, color = GREEN, sound[] = "", Float:time = 0.0, const input[] = "");
/**
* Remove player tutor.
*
* @param id Player index.
* @return 1 on success, 0 otherwise.
*/
native remove_user_cztutor(id);
/**
* Check if a tutor is displaying to this player.
*
* @param id Player index.
* @return Color of player tutor (If not exists will return NONE).
*/
native is_user_cztutor(id);
[Example]
Code:
#include <amxmodx>
#include <czerotutor>
// Native only support .wav sounds
new szSound[] = { "sound/misc/tutor.wav" }
public plugin_precache()
{
// Renember you have to precache the sound
precache_sound(szSound)
}
public plugin_init()
{
register_plugin("New Plugin", "1.0", "Dark Style")
register_event("HLTV", "roundstart", "a", "1=0", "2=0")
}
public client_authorized(id)
{
// Index, Text, Color, Sound, Time.
create_user_cztutor(id, RED, szSound, 5.0, "Welcome!")
}
public roundstart()
{
// You don't need to get_players when don't have id, the native do it for you.
if(is_user_cztutor(0) != NONE)
remove_user_cztutor(0), create_user_cztutor(0, RED, szSound, 5.0, "Dungerous Server^nIP: XXX.XXX.XXX:XXXXX!")
else
create_user_cztutor(0, RED, szSound, 5.0, "Dungerous Server^nIP: XXX.XXX.XXX:XXXXX!")
}
This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this plugin; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include <amxmodx>
#define VERSION "0.0.1" #define PLUGIN "TutorText"
new const g_szTutorSounds[TutorSounds][] = { "sound/events/tutor_msg.wav", // Yellow, Green "sound/events/friend_died.wav", // Red "sound/events/enemy_died.wav", // Blue "sound/events/task_complete.wav" // Green }
public plugin_natives() { register_library("cztutor") register_native("client_tutor", "client_tutor") }
public plugin_precache() { new szModName[9] get_modname(szModName, charsmax(szModName)) if( !equal(szModName, "czero") ) { set_fail_state("Only works on condition zero") } }
This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this plugin; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include <amxmodx>
#define VERSION "0.0.1" #define PLUGIN "TutorText"
new const g_szTutorSounds[TutorSounds][] = { "sound/events/tutor_msg.wav", // Yellow, Green "sound/events/friend_died.wav", // Red "sound/events/enemy_died.wav", // Blue "sound/events/task_complete.wav" // Green }
public plugin_natives() { register_library("cztutor") register_native("client_tutor", "client_tutor") }
public plugin_precache() { new szModName[9] get_modname(szModName, charsmax(szModName)) if( !equal(szModName, "czero") ) { set_fail_state("Only works on condition zero") } }
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Warning: Tag mismatch on line 178
Error: Number of arguments does not match definition on line 178
Warning: Tag mismatch on line 182
Error: Number of arguments does not match definition on line 182
2 Errors.
It doesnt work without the #include<czerotutor> and defenitly not with it
Why is it saying that the number of parameters is wrong?
__________________
Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]
You're just a fucking ripper of MMYTH's plugin.
C'mon, look at your plugins man! all of them... the original author is the "MMYTH".
You just edit one or two things and you say "I made this plugin, i'm fucking awesome!" GTFO!