SA-MP Forums Archive
Names of Neighborhoods - 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)
+--- Thread: Names of Neighborhoods (/showthread.php?tid=452417)



Names of Neighborhoods - vannesenn - 21.07.2013

How do I create zones such as Ganton, Idlewood, Commerce, etc. I do not think the GangZone.


Re: Names of Neighborhoods - jueix - 21.07.2013

There are lot's of different way's, But I'm not sure what you mean, Do you mean like if the player is in Idlewood it basicly tell's him somewhere in game in like a textdraw or something else?


Re: Names of Neighborhoods - DobbysGamertag - 21.07.2013

pawn Код:
#include <a_zones>
#include <zcmd>
CMD:zone(playerid,params[])
{
    new zone[64],string[160];
    GetPlayer2DZone(playerid,zone,sizeof(zone));
    format(string,sizeof(string),"%s",zone);
    SendClientMessage(playerid,-1,string);
    return 1;
}
Or you could do what jueix said, make a textdraw, use a timer, and update it, or use GameTextForPlayer.

pawn Код:
#include <a_zones>
#include <zcmd>
CMD:zone(playerid,params[])
{
    new zone[64],string[160];
    GetPlayer2DZone(playerid,zone,sizeof(zone));
    format(string,sizeof(string),"%s",zone);
    GameTextForPlayer(playerid,string,2000,5);
    return 1;
}
The zones include is located here. Clicky


Re: Names of Neighborhoods - vannesenn - 21.07.2013

Quote:
Originally Posted by jueix
Посмотреть сообщение
There are lot's of different way's, But I'm not sure what you mean, Do you mean like if the player is in Idlewood it basicly tell's him somewhere in game in like a textdraw or something else?
Yes, but my question is how the zones work. Coordinates that I have to take?


Re: Names of Neighborhoods - DobbysGamertag - 21.07.2013

Quote:
Originally Posted by vannesenn
Посмотреть сообщение
Yes, but my question is how the zones work. Coordinates that I have to take?
There's "zones" you speak of already around here. Click https://sampforum.blast.hk/showthread.php?tid=27598


Then use what i gave you as a way of checking, you can elaborate on it too. Textdraws and stuff


Re: Names of Neighborhoods - vannesenn - 21.07.2013

I do not want the zone. I need someone to explain how to make zone. I then want a way to make these streets (as Ganton Street, 56th Avenue, etc.) .....


Re: Names of Neighborhoods - vannesenn - 21.07.2013

Somebody help?


Re: Names of Neighborhoods - MP2 - 21.07.2013

The North-East corner is the max x/y, and the South-East corner is the min x/y.


Re: Names of Neighborhoods - vannesenn - 21.07.2013

I understand you.
can you explain to me in this case
AddPlayerClass(187,1961.7101,-2119.5242,13.3828,3.7601,0,0,0,0,0,0); // max
AddPlayerClass(187,1966.8760,-2136.0652,13.5469,274.7726,0,0,0,0,0,0); // max
AddPlayerClass(187,1961.5481,-2156.4509,13.3828,181.0851,0,0,0,0,0,0); // min
AddPlayerClass(187,1951.4379,-2135.2185,13.5396,77.3941,0,0,0,0,0,0); // min


Re: Names of Neighborhoods - vannesenn - 23.07.2013

Somebody help?