Zaključano
"Trebam nešto" - tema
Započeo Obrisan korisnik
•
pre 15 godina
165,754
pregleda
1,465
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
pre 14 godina
Quote from July 30, 2011, 7:51 pm:
Trebam /do komandu za GF mod ako netko ima ?
meni isto treba /do ali zcmd
pre 14 godina
/dooooooooooooooooo
#include
#include // ili zcmd ovisi sta koristite
#include
#include
HPROX(id,const iString[],color = 0xFFFFF, Float😄istance) // H
{
new
Float😛os;
foreach(Player, i)
{
GetPlayerPos(id, Float😛os, Float😛os, Float😛os);
if(IsPlayerInRangeOfPoint(i, Float😄istance, Float😛os, Float😛os, Float😛os))
{
SendClientMessage(i,color,iString);
}
else return false;
}
return true;
}
YCMD:do(playerid, params[], help)
{
#pragma unused help
new plName, string, txt;
GetPlayerName(playerid, plName, sizeof(plName));
if(sscanf(params, "s", txt)) return SendClientMessage(playerid,-1, "SERVER:: /do ");
else
{
format(string, sizeof(string), "* %s (( %s ))", txt, plName);
HPROX(playerid,string,-1,20.0);
}
return 1;
}
CMD:do(playerid, params[])
{
new plName, string, txt;
GetPlayerName(playerid, plName, sizeof(plName));
if(sscanf(params, "s", txt)) return SendClientMessage(playerid,-1, "SERVER:: /do ");
else
{
format(string, sizeof(string), "* %s (( %s ))", txt, plName);
HPROX(playerid,string,-1,20.0);
}
return 1;
}
*NIJE TESTIRANO!
#include
#include
#include
#include
HPROX(id,const iString[],color = 0xFFFFF, Float😄istance) // H
{
new
Float😛os;
foreach(Player, i)
{
GetPlayerPos(id, Float😛os, Float😛os, Float😛os);
if(IsPlayerInRangeOfPoint(i, Float😄istance, Float😛os, Float😛os, Float😛os))
{
SendClientMessage(i,color,iString);
}
else return false;
}
return true;
}
YCMD:do(playerid, params[], help)
{
#pragma unused help
new plName, string, txt;
GetPlayerName(playerid, plName, sizeof(plName));
if(sscanf(params, "s", txt)) return SendClientMessage(playerid,-1, "SERVER:: /do ");
else
{
format(string, sizeof(string), "* %s (( %s ))", txt, plName);
HPROX(playerid,string,-1,20.0);
}
return 1;
}
CMD:do(playerid, params[])
{
new plName, string, txt;
GetPlayerName(playerid, plName, sizeof(plName));
if(sscanf(params, "s", txt)) return SendClientMessage(playerid,-1, "SERVER:: /do ");
else
{
format(string, sizeof(string), "* %s (( %s ))", txt, plName);
HPROX(playerid,string,-1,20.0);
}
return 1;
}
*NIJE TESTIRANO!
pre 14 godina
K4 wrote on July 31, 2011, 10:06 am:
/dooooooooooooooooo
#include
#include // ili zcmd ovisi sta koristite
#include
#include
HPROX(id,const iString[],color = 0xFFFFF, Float😄istance) // H
{
new
Float😛os;
foreach(Player, i)
{
GetPlayerPos(id, Float😛os, Float😛os, Float😛os);
if(IsPlayerInRangeOfPoint(i, Float😄istance, Float😛os, Float😛os, Float😛os))
{
SendClientMessage(i,color,iString);
}
else return false;
}
return true;
}
YCMD:do(playerid, params[], help)
{
#pragma unused help
new plName, string, txt;
GetPlayerName(playerid, plName, sizeof(plName));
if(sscanf(params, "s", txt)) return SendClientMessage(playerid,-1, "SERVER:: /do ");
else
{
format(string, sizeof(string), "* %s (( %s ))", txt, plName);
HPROX(playerid,string,-1,20.0);
}
return 1;
}
CMD:do(playerid, params[])
{
new plName, string, txt;
GetPlayerName(playerid, plName, sizeof(plName));
if(sscanf(params, "s", txt)) return SendClientMessage(playerid,-1, "SERVER:: /do ");
else
{
format(string, sizeof(string), "* %s (( %s ))", txt, plName);
HPROX(playerid,string,-1,20.0);
}
return 1;
}
*NIJE TESTIRANO!
#include
#include
#include
#include
HPROX(id,const iString[],color = 0xFFFFF, Float😄istance) // H
{
new
Float😛os;
foreach(Player, i)
{
GetPlayerPos(id, Float😛os, Float😛os, Float😛os);
if(IsPlayerInRangeOfPoint(i, Float😄istance, Float😛os, Float😛os, Float😛os))
{
SendClientMessage(i,color,iString);
}
else return false;
}
return true;
}
YCMD:do(playerid, params[], help)
{
#pragma unused help
new plName, string, txt;
GetPlayerName(playerid, plName, sizeof(plName));
if(sscanf(params, "s", txt)) return SendClientMessage(playerid,-1, "SERVER:: /do ");
else
{
format(string, sizeof(string), "* %s (( %s ))", txt, plName);
HPROX(playerid,string,-1,20.0);
}
return 1;
}
CMD:do(playerid, params[])
{
new plName, string, txt;
GetPlayerName(playerid, plName, sizeof(plName));
if(sscanf(params, "s", txt)) return SendClientMessage(playerid,-1, "SERVER:: /do ");
else
{
format(string, sizeof(string), "* %s (( %s ))", txt, plName);
HPROX(playerid,string,-1,20.0);
}
return 1;
}
*NIJE TESTIRANO!
Hvala duplex meni radi zdmc
i sada probao sam napraviti ovo za zcmd ali nisam uspio pa ako mi netko moze pomoc da napravim ovo u zcmdu ja probao i nisam uspio
http://balkan-samp.com/forum/index.php?topic=4542.0
pre 14 godina
CMD:placka(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1430.0513,-1022.6671,23.8281))
{
SetTimerEx("RandomPljacka", 30000, false, "d",playerid);
}
return 1;
}
Iako baš nisam puno radio sa ZCMD, ovo je krajnje jednostavno i trebalo bi da radi.
NAPOMENA: Nije testirano.
pre 14 godina
Samo mi ponavlja ovo Upute: /report a nece poslat adminima nek to stalno salje. .S
CMD:report(playerid, params[])
{
new
Poruka,
razlog;
if(sscanf(params, "s", razlog)) return SendClientMessage(playerid, 0xAA3333AA, "Upute:/report ");
else
{
foreach(Player, a)
{
if(IsPlayerAdmin(a))
{
format(Poruka, sizeof(Poruka), "Report od igraca: [%i].", playerid);
SendClientMessage(a, -1, Poruka);
format(Poruka, sizeof(Poruka), "-%s.", razlog);
SendClientMessage(a, 0xAA3333AA, Poruka);
}
}
}
return 1;
}
pre 14 godina
COMMAND:report(playerid, params[])
{
new string;
new sendername;
new idx;
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(params);
while ((idx < length) && (params <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = params;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561} /report ");
return 1;
}
if(Reporter == 1)
{
SendClientMessage(playerid, COLOR_GREY, "Moras sacekati minutu prije ponovnog slanja reporta.");
return 1;
}
if(PlayerInfo >= 1)
{
format(string, sizeof(string), " {FFFF80}Balkan Nations | {FF4444}Ne mozes pricati jer si utisan! Preostalo vrijeme: {FFFF80}%d sekundi(%d minuta)", PlayerInfo, (PlayerInfo/60)+1);
SCM(playerid, 0xFF4444FF, string);
return 1;
}
format(string, sizeof(string), "Report od %s: {B1B1D8}*%s", sendername, (result));
ABroadCast(0x8080C0FF,string,1);
format(string, sizeof(string), "|Tvoj report glasi: {B1B1D8}*%s", (result));
SendClientMessage(playerid, 0x8080C0FF, string);
Reporter = 1;
SetTimerEx("Report1",60000, false, "i", playerid);
}
return 1;
}
{
new string;
new sendername;
new idx;
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(params);
while ((idx < length) && (params <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = params;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561} /report ");
return 1;
}
if(Reporter == 1)
{
SendClientMessage(playerid, COLOR_GREY, "Moras sacekati minutu prije ponovnog slanja reporta.");
return 1;
}
if(PlayerInfo >= 1)
{
format(string, sizeof(string), " {FFFF80}Balkan Nations | {FF4444}Ne mozes pricati jer si utisan! Preostalo vrijeme: {FFFF80}%d sekundi(%d minuta)", PlayerInfo, (PlayerInfo/60)+1);
SCM(playerid, 0xFF4444FF, string);
return 1;
}
format(string, sizeof(string), "Report od %s: {B1B1D8}*%s", sendername, (result));
ABroadCast(0x8080C0FF,string,1);
format(string, sizeof(string), "|Tvoj report glasi: {B1B1D8}*%s", (result));
SendClientMessage(playerid, 0x8080C0FF, string);
Reporter = 1;
SetTimerEx("Report1",60000, false, "i", playerid);
}
return 1;
}
pre 14 godina
Quote from July 30, 2011, 7:51 pm:
Trebam /do komandu za GF mod ako netko ima ?
meni isto treba /do ali zcmd
COMMAND:heal(playerid, params[])
{
new id, string;
if (PlayerInfo >= 1)// ovdje je ako je admin ti si stavi ili zavisi kako ti je definirano
{
if (sscanf(params, "u", id)) SendClientMessage(playerid, COLOR_GREY, "INFO: /heal [ID/DioImena] ");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_GREY, "Igrac nije online!");
else
{
new idname;
GetPlayerName(id, idname, sizeof(idname));
new sendername;
GetPlayerName(playerid, sendername, sizeof(sendername));
SetPlayerHealth(id, 100.0);
format(string, sizeof(string), "{FF4444}HEAL|{FFFF80} Izlijecen si od Admina: {FF4444}%s", sendername);// tu si stavi da je izljecen od bolnicara: %s ili kako vec zelis..
SCM(id, 0xFF4444FF, string);
format(stringa, sizeof(stringa), "{FF4444}ADMIN| {FFFF80}Izlijecio si : {FF4444}%s", idname);
SCM(playerid, 0xFF4444FF, stringa);
}
}
return 1;
}Izvolis, to ti je komanda vise kao za admine /sethp ali ako treba stavi si GetPlayerMoney(playerid, -100); i namjesti kako zelis..
ako trebas nesto samo mi reci na PM pa cu ti napravit...
pre 14 godina
Petar Pan wrote on August 1, 2011, 12:28 pm:
Trebam komandu /v u diaogu
/v ??
puno si rekao...
Kao prvo korsitis ZCMD,strcmp.....
a kao drugo sta bi ta komanda trebala napraviti kada je koristis ?
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava