SA-MP Forums Archive
GangZone - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: GangZone (/showthread.php?tid=632092)



GangZone - WILK3R - 09.04.2017

Tenho uma duvida, por exeplo eu criei essa gangzona aн... aн eu quero saber quando um player entrar nela, como faзo?

PHP код:
new gangzone;
gangzone GangZoneCreate(1248.0112072.8041439.3482204.319); 



Re: GangZone - didimk157 - 09.04.2017

bom pelo oque eu entendi vocк quer verificar se o player estб ta no checkpoint esse foi meu lado caso nгo for oque vc quer me avise.
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
    if (
IsPlayerInCheckpoint(gangzone))
    
SendClientMessage(playerid, -1"Vocк estб no checkpoint ");
    return 
1;




Re: GangZone - WILK3R - 09.04.2017

Didimk157 mais eu nгo quero pra quando entrar em um checkpoint e sim na gangzona em si.


Re: GangZone - WILK3R - 09.04.2017

Encontrei o necessбrio, eu acho. isso vai mim ajudar!

PHP код:
stock IsPlayerInArea(playerid,Float:minX,Float:minY,Float:maxX,Float:maxY)
{
    new 
Float:pX,Float:pY,Float:pZ;
    
GetPlayerPos(playerid,pX,pY,pZ);
    if(
pX >= minX && pX <= maxX && pY >= minY && pY <= maxY) return 1;
    else return 
0;




Re: GangZone - IlanZ - 09.04.2017

Veja essa include, https://sampforum.blast.hk/showthread.php?tid=395273

Existe uma funзгo nela chamado:

OnPlayerEnterDynamicZone

OnPlayerLeaveDynamicZone


Re: GangZone - renatog - 09.04.2017

Se vocк usa o streamer plugin do incognito, pode usar as dynamic areas e as callbacks OnPlayer(Enter/Exit)DynamicArea


Re: GangZone - WILK3R - 09.04.2017

Qual seu skype nгo to conseguindo achar vocк pelo que tem no seus post.