Help with CMD! -
defaultsrb - 13.02.2018
YCMD

ravila(playerid, params[], help)
{
#pragma unused help
#pragma unused params
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"GA:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
new string[128];
format(string, sizeof(string), "* Igrac %s gleda pravila (/pravila).", GetName(playerid));
new info[8192];
// commands
ProxDetector(30.0, playerid, string, PROX,PROX,PROX,PROX,PROX);
return 1;
}
And when i try /pravila it show me Server: Unknown command
Can you help me?
Re: Help with CMD! -
Mugala - 13.02.2018
is this code placed in filterscript or..?
Re: Help with CMD! -
Coox - 13.02.2018
I reckon you are mixing YCMD and zcmd or something like that.
Re: Help with CMD! -
PepsiCola23 - 13.02.2018
we cant understand anything,translate it to enlish please and tell us whats the cmd supposed to do
Re: Help with CMD! -
defaultsrb - 13.02.2018
YCMD: rules (playerid, params [], help)
{
#pragma unused help
#pragma unused params
if (loggedplayer[playerid] == 0) return SCM (playerid, -1, "GA: RP |" RED "You must log in to use this command!"); //this line of code dosent do anything to server:unknown command i think
new string [128];
format (string, sizeof (string), "* Player% s is watching rules (/ rules).", GetName (playerid));
new info [8192];
// commands
ProxDetector (30.0, playerid, string, PROX, PROX, PROX, PROX, PROX);
return 1;
}
yes this is set in gamemode.
and cmd is changded whit ycmd
Re: Help with CMD! -
solstice_ - 13.02.2018
PHP код:
YCMD:rules(playerid, params[])
{
if(loggedplayer[playerid] == 0) return SCM(playerid, -1, "GA:RP |"RED"You must log in to use this command!");
new string[128];
format(string, sizeof(string), "* Player %s is watching rules (/rules).", GetName(playerid));
new info[8192];
ProxDetector(30.0, playerid, string, PROX, PROX, PROX, PROX, PROX);
return 1;
}
And btw try to use anything else instead of ProxDetector, it's a bit too outdated.
Re: Help with CMD! -
defaultsrb - 13.02.2018
Not working can someone fix this?
Re: Help with CMD! -
Mugala - 13.02.2018
what do u want to do with this command? I can't understand this language which is given in texts.
Re: Help with CMD! -
solstice_ - 13.02.2018
PHP код:
stock NearbyMessage(playerid, color, text[])
{
new Float: PlayerPosition[3];
GetPlayerPos(playerid, PlayerPosition[0], PlayerPosition[1], PlayerPosition[2]);
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 5, PlayerPosition[0], PlayerPosition[1], PlayerPosition[2]))
{
SendClientMessage(i, color, text);
}
}
}
PHP код:
YCMD:rules(playerid, params[])
{
if(loggedplayer[playerid] == 0) return SCM(playerid, -1, "GA:RP |"RED"You must log in to use this command!");
new string[128];
format(string, sizeof(string), "* Player %s is watching rules (/rules).", GetName(playerid));
NearbyMessage(playerid, PROX, string);
return 1;
}
Re: Help with CMD! -
Sew_Sumi - 13.02.2018
Quote:
Originally Posted by willbedie
try to use anything else instead of ProxDetector, it's a bit too outdated.
|
It does what is acceptable, and if it needs to be updated, then it can be updated... The only 'updates' I have seen anyone make, is simply hack the crap out of it, and make it simply a cut-off, rather than the fade.
Quote:
Originally Posted by willbedie
PHP код:
stock NearbyMessage(playerid, color, text[])
{
new Float: PlayerPosition[3];
GetPlayerPos(playerid, PlayerPosition[0], PlayerPosition[1], PlayerPosition[2]);
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 5, PlayerPosition[0], PlayerPosition[1], PlayerPosition[2]))
{
SendClientMessage(i, color, text);
}
}
}
|
Interesting, could be something to look at.
OP, I suggest you learn a bit more about scripting. If you haven't included the include for ycmds, or if you've got a callback or a filterscript that is returning the wrong return, it could cause trouble.
Show your include lines.
E.g.
Код:
#include <a_samp>
#include <streamer>