SA-MP Forums Archive
SendClientMessage problem? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: SendClientMessage problem? (/showthread.php?tid=65844)



SendClientMessage problem? - decayer - 16.02.2009

When I use the following SendClientMessage code, that is normally in my Ladmin.pwn file. The All Admin Commands line shows up when i type /lcommands, and so does /level1 /level2 etc.
But the one that says ''player commands:" does not show up. Help me?

Код:
dcmd_lcommands(playerid,params[]) {
	#pragma unused params
	if(PlayerInfo[playerid][Level] > 0)
	{
		SendClientMessage(playerid,blue,"  ---= All Admin Commands =---");
		SendClientMessage(playerid,lightblue," /level1, /level2, /level3, /level4, /level5, /rcon ladmin");
		SendClientMessage(playerid,lightblue," Player Commands: /register, /login, /report, /stats, /time, /changepass, /resetstats, /getid, /jetpack /goto /vgoto /lgoto /ltele");
	}
	return 1;
}



Re: SendClientMessage problem? - Joe Staff - 16.02.2009

looks ok, are you sure that the .amx is saving in the proper area? I've done that a couple of times when I made a back up file of a .pwn lol


Re: SendClientMessage problem? - Nimphious - 16.02.2009

pawn Код:
dcmd_lcommands(playerid,params[]) {
    #pragma unused params
    {
     SendClientMessage(playerid,blue,"  ---= All Admin Commands =---");
    SendClientMessage(playerid,lightblue," /level1, /level2, /level3, /level4, /level5, /rcon ladmin");
    SendClientMessage(playerid,lightblue," Player Commands: /register, /login, /report, /stats, /time, /changepass, /resetstats, /getid, /jetpack /goto /vgoto /lgoto /ltele");
    }
    return 1;
}



Re: SendClientMessage problem? - Joe Staff - 16.02.2009

Quote:
Originally Posted by TeddyBear
pawn Код:
dcmd_lcommands(playerid,params[]) {
    #pragma unused params
    {
    SendClientMessage(playerid,blue,"  ---= All Admin Commands =---");
    SendClientMessage(playerid,lightblue," /level1, /level2, /level3, /level4, /level5, /rcon ladmin");
    SendClientMessage(playerid,lightblue," Player Commands: /register, /login, /report, /stats, /time, /changepass, /resetstats, /getid, /jetpack /goto /vgoto /lgoto /ltele");
    }
    return 1;
}
you removed the conditional?


Re: SendClientMessage problem? - Nimphious - 16.02.2009

Quote:
Originally Posted by SilentHuntR
Quote:
Originally Posted by TeddyBear
pawn Код:
dcmd_lcommands(playerid,params[]) {
    #pragma unused params
    {
    SendClientMessage(playerid,blue,"  ---= All Admin Commands =---");
    SendClientMessage(playerid,lightblue," /level1, /level2, /level3, /level4, /level5, /rcon ladmin");
    SendClientMessage(playerid,lightblue," Player Commands: /register, /login, /report, /stats, /time, /changepass, /resetstats, /getid, /jetpack /goto /vgoto /lgoto /ltele");
    }
    return 1;
}
you removed the conditional?
yes, Just see if it works, it works or me.


Re: SendClientMessage problem? - Daren_Jacobson - 16.02.2009

if it is over 128 long it won't get displayed at all, split it up.


Re: SendClientMessage problem? - decayer - 16.02.2009

it didn't work. its saving in the right area because if i would change something else it would still show up.

and Teddybears idea didn't do anything. still missing the player commands line :/


Re: SendClientMessage problem? - Nimphious - 16.02.2009

Just make a new line


Re: SendClientMessage problem? - Daren_Jacobson - 16.02.2009

what is this world coming too...
pawn Код:
dcmd_lcommands(playerid,params[]) {
    #pragma unused params
    if(PlayerInfo[playerid][Level] > 0)
    {
        SendClientMessage(playerid,blue,"  ---= All Admin Commands =---");
        SendClientMessage(playerid,lightblue," /level1, /level2, /level3, /level4, /level5, /rcon ladmin");
        SendClientMessage(playerid,lightblue," Player Commands: /register, /login, /report, /stats, /changepass");
             SendClientMessage(playerid, lightblue, " /time, /resetstats, /getid, /jetpack /goto /vgoto /lgoto /ltele");
    }
    return 1;
}