SA-MP Forums Archive
2 Easy things.. - 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: 2 Easy things.. (/showthread.php?tid=271037)



2 Easy things.. - Noner - 22.07.2011

Hello, I want 2 tutorials, I used Search, but i did not find anything.
This is the tutorials I want:

A showplayermessage tutorial, I want if a player type like /info then they get 3 lines with:
IP
GM
MAP

I tryed me to make it by myself, but failed.

And i want a tutorial like this:
When you enter the game, so is it text on any servers, in the right site of the screen with the website url. ( The text need to be there all the time)

So, i hope any have any tutorials about that.


Re: 2 Easy things.. - MadeMan - 22.07.2011

You need SendClientMessage and textdraws.


Re: 2 Easy things.. - Noner - 22.07.2011

Need some tutorials about that i want to, cuse im learning some script, im not pro. I want to make commands to show /ino and /updates


Re: 2 Easy things.. - DRIFT_HUNTER - 22.07.2011

Add these under on onplayercommandtext

pawn Код:
if (strcmp("/info", cmdtext, true, 10) == 0)
{
    new string[56],pIP;
    GetPlayerIp(playerid,pIP,36);
    format(string,56,"IP: %s",pIP);
    SendClientMessage(playerid, 0x33FF33AA,string);
    GetServerVarAsString("gamemodetext", string, 36);
    format(string,56,"Gamemode: %s",string);
    SendClientMessage(playerid, 0x33FF33AA,string);
    GetServerVarAsString("mapname", string, 36);
    format(string,56,"Map: %s",string);
    SendClientMessage(playerid, 0x33FF33AA,string);
    return 1;
}
[NOTE]IP is the player IP


Re: 2 Easy things.. - Noner - 22.07.2011

Thanks man, can you make the same code but i can write on the code? Like,
Anything here
Anything here
Anything here. ect ect..
Like, texts:P


Re: 2 Easy things.. - Ehab1911 - 22.07.2011

hehe hm I think it's about ShowPlayerDialog, But I don't know how to use it :S


Re: 2 Easy things.. - Noner - 22.07.2011

It can be, any have a tutorial about that?


Re: 2 Easy things.. - DRIFT_HUNTER - 22.07.2011

Quote:
Originally Posted by Noner
Посмотреть сообщение
Thanks man, can you make the same code but i can write on the code? Like,
Anything here
Anything here
Anything here. ect ect..
Like, texts:P
I dont get you....and here is FS to help you make textdraw for server name/website url or whatever
https://sampforum.blast.hk/showthread.php?tid=12018


Re: 2 Easy things.. - MoroDan - 22.07.2011

Quote:
Originally Posted by Noner
Посмотреть сообщение
Thanks man, can you make the same code but i can write on the code? Like,
Anything here
Anything here
Anything here. ect ect..
Like, texts:P
PHP код:
if(!strcmp(cmdtext"/info"true))
{
    if(
IsPlayerConnected(playerid))
    {
        
SendClientMessage(playerid0xB0DDE1AA"IP - ");
        
SendClientMessage(playerid0x7DCED5AA"MAP - ");
        
SendClientMessage(playerid0x4EC4CEAA"Host - ");
        
SendClientMessage(playerid0x93D6DCAA"Gamemode - ");
        
SendClientMessage(playerid0x68C4CDAA"Scripter - ");
    }
    return 
1;




Re: 2 Easy things.. - Noner - 22.07.2011

Now i only need the link on the right site of the screen when any enter the game, my website URL. I know others server uses the link down in the right site of the screen, any know how to make the link to be down in the right site?