2 Easy things..
#1

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.
Reply
#2

You need SendClientMessage and textdraws.
Reply
#3

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
Reply
#4

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
Reply
#5

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
Reply
#6

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

It can be, any have a tutorial about that?
Reply
#8

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
Reply
#9

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;

Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)