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(playerid, 0xB0DDE1AA, "IP - ");
SendClientMessage(playerid, 0x7DCED5AA, "MAP - ");
SendClientMessage(playerid, 0x4EC4CEAA, "Host - ");
SendClientMessage(playerid, 0x93D6DCAA, "Gamemode - ");
SendClientMessage(playerid, 0x68C4CDAA, "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?