Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Info w sayudam +
#1
Napisano 23.12.2010 20:26
proszę o przerobienie tego pluginu w taki sposob by pokazywalo tylko rank na poczatku kazdej rundy i jak da rade nick tej osoby ktora jest przedemna w ranku
#2
Napisano 24.12.2010 23:31
Info w say - Nieoficjalny polski support AMX Mod X
Prosze o przerobienie tego pluginu w taki sposob by pokazywalo tylko rank na poczatku kazdej rundy i jak da rade nick tej osoby ktora jest przedemna w ranku
#include <amxmodx>
#include <csx>
#include <colorchat>
public plugin_init()
{
register_plugin("plg ","0.1","emblaze")
register_logevent("Round_Start", 2, "1=Round_Start")
return PLUGIN_CONTINUE
}
public Round_Start()
{
new izStats[8], izBody[8]
new iRankPos, iRankMax
new Players[32], playerCount;
get_players(Players, playerCount);
new id2;
for (new i=0; i<playerCount; i++)
{
id2 = Players[i];
iRankPos = get_user_stats(id2, izStats, izBody)
iRankMax = get_statsnum()
ColorChat(id2, GREEN, "**^x01 Twoj rank wynosi:^x04 %d^x01/^x04%d", iRankPos, iRankMax)
}
}
Info kto jest w next ranku niestety ci nie zrobie ale z tego pamietam jest to w jakims pluginie autorstwa R3X albo Sn!ffer ;]
#3
Napisano 25.12.2010 12:31
#4
Napisano 25.12.2010 14:04
a z tym co dal misieq mam problem /groups/amxmodx/tmp3/textwa1CcB.sma(3) : fatal error 100: cannot read from file: "colorchat"
dasz rade skompilowac?
#5
Napisano 25.12.2010 19:00
PtasiorEx ale takiego ktory pokazuje kto jest przed toba w ranku nieznalazlem ;/
a z tym co dal misieq mam problem /groups/amxmodx/tmp3/textwa1CcB.sma(3) : fatal error 100: cannot read from file: "colorchat"
dasz rade skompilowac?
#include <amxmodx>
#include <csx>
#define MAXSLOTS 32
enum Color{
GREEN = 1, // Yellow
YELLOW, // Green Color
TEAM_COLOR, // Red, grey, blue
GREY, // grey
RED, // Red
BLUE, // Blue
}
new TeamName[][] = {
"",
"TERRORIST",
"CT",
"SPECTATOR"
}
public plugin_init()
{
register_plugin("plg ","0.1","emblaze")
register_logevent("Round_Start", 2, "1=Round_Start")
return PLUGIN_CONTINUE
}
/* Color Chat */
public ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...)
{
static message[256];
switch(type)
{
case YELLOW:{ // Yellow
message[0] = 0x01;
}
case GREEN:{// Green
message[0] = 0x04;
}
default:{ // White, Red, Blue
message[0] = 0x03;
}
}
vformat(message[1], 251, msg, 4);
// Make sure message is not longer than 192 character. Will crash the server.
message[192] = '^0';
new team, ColorChange, index, MSG_Type;
if(!id) {
index = FindPlayer();
MSG_Type = MSG_ALL;
} else {
MSG_Type = MSG_ONE;
index = id;
}
team = get_user_team(index);
ColorChange = ColorSelection(index, MSG_Type, type);
ShowColorMessage(index, MSG_Type, message);
if(ColorChange){
Team_Info(index, MSG_Type, TeamName[team]);
}
}
ShowColorMessage(id, type, message[]){
message_begin(type, 76, _, id);
write_byte(id)
write_string(message);
message_end();
}
Team_Info(id, type, team[]){
message_begin(type, 86, _, id);
write_byte(id);
write_string(team);
message_end();
return 1;
}
ColorSelection(index, type, Color:Type){
switch(Type) {
case RED: {
return Team_Info(index, type, TeamName[1]);
}
case BLUE: {
return Team_Info(index, type, TeamName[2]);
}
case GREY: {
return Team_Info(index, type, TeamName[0]);
}
}
return 0;
}
FindPlayer(){
new i = -1;
while(i <= MAXSLOTS){
if(is_user_connected(++i)){
return i;
}
}
return -1;
}
/* Info */
public Round_Start()
{
new izStats[8], izBody[8]
new iRankPos, iRankMax
new Players[32], playerCount;
get_players(Players, playerCount);
new id2;
for (new i=0; i<playerCount; i++)
{
id2 = Players[i];
iRankPos = get_user_stats(id2, izStats, izBody)
iRankMax = get_statsnum()
ColorChat(id2, GREEN, "**^x01 Twoj rank wynosi:^x04 %d^x01/^x04%d", iRankPos, iRankMax)
}
}
#6
Napisano 26.12.2010 20:54
Dodano 30 grudzień 2010 - 18:44:
Odswiezam.
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych