Help with few 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: Help with few things. (
/showthread.php?tid=239781)
Help with few things. -
Compton - 14.03.2011
Hello guys, its me again

. I have few questions about how to make some things.
1. Well I would like to know how to change my /me command radius, so it wont be heard all over LS
2. How to hide player icons from the map, so nobody will MG (making a RP serv)
3. How to add turf colours into the map(if its somehow releated to pawno even)
4. How to lock a skin for some person.
-Thank you.
Re: Help with few things. -
antonio112 - 14.03.2011
1. How about giving us the /me command first?
2. Put
under
3. -
4. -
Re: Help with few things. -
Compton - 14.03.2011
Oh here yo ugo the /me command:
Код:
if(!strcmp(cmdtext, "/me", true, 3))
{
if(!cmdtext[3])return SendClientMessage(playerid, 0x33CCFFAA, "USAGE: /me [action]");
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
SendClientMessageToAll(0x33CCFFAA, str);
return 1;
}
And thank you with helping to hide the player marks
Re: Help with few things. -
antonio112 - 14.03.2011
pawn Код:
if(!strcmp(cmdtext, "/me", true, 3))
{
if(!cmdtext[3])return SendClientMessage(playerid, 0x33CCFFAA, "USAGE: /me [action]");
new str[128];
new Float:X, Float:Y, Float:Z;
GetPlayerPos( playerid, X, Y, Z );
for( new i; i < MAX_PLAYERS; i++ )
{
if( IsPlayerConnected( i ) )
{
if( IsPlayerInRangeOfPoint( i, 15.0, X, Y, Z )
{
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
SendClientMessagel(i, 0x33CCFFAA, str);
}
}
}
return 1;
}
This should work. Now, you can edit the range at any time, changing the
15.0 to higher or lower values.
Re: Help with few things. -
Compton - 15.03.2011
Guys, I found out how to make the radar of mine to become with set colours but one more question, how do I get the coordinates of the whole turf I need, Ill ill use /save ill need to run around the whole map, and it aint garaunteed that it will colour up all the area I need, so is there some way to get cooridnates of full hood?