GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: sziaocsi - 2013. február 28. - 13:09:09

Cím: Egy parancs több helyen.
Írta: sziaocsi - 2013. február 28. - 13:09:09
Helló, hogy lehet megcsinálni, hogy egy parancsot lehessen 2-3 vagy akár 3 helyen is használni?
Cím: Egy parancs több helyen.
Írta: ZyZu. - 2013. február 28. - 13:24:33
ezt, hogy érted? Hogy egy adott parancsot csak egy adott helyen szeretnél használni?
Cím: Egy parancs több helyen.
Írta: sziaocsi - 2013. február 28. - 13:27:30
Idézetet írta: ZyZu date=1362054273\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"34270\" data-ipsquote-contentclass=\"forums_Topic
ezt, hogy érted? Hogy egy adott parancsot csak egy adott helyen szeretnél használni?
 
Igen.
Ezt a parancsot:
 
CMD:vesz(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 5.5, -23.2830,-55.2330,1003.5469))
{
ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, \"Vásárlás\", \"Cigaretta  10$\\nÖngyújtó 5$\\nSzendvics 10$\\nÜdítõ 10$\\nGPS 100$\\nAdóvevõ 110$\\n Rádió 20$\", \"Megvesz\", \"Mégsem\");
if(Tutorial[ playerid ] == 1)
{
Tutorial[ playerid ] ++;
SendClientMessage(playerid, NARANCS, \"Rendben. Szükséged lesz telefonra is! ( A telefon üzletet bejelöltük a térképeden. )\");
SetPlayerCheckpoint(playerid, 1359.9967,205.8384,19.5547, 3.0);
}
}
else
{
    SendClientMessage(playerid, PIROS, \"Nem vagy a boltban!\");
}
return 1;
}

 
2-3 helyen szeretném használni.
Cím: Egy parancs több helyen.
Írta: ZyZu. - 2013. február 28. - 13:30:20
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1815.6116,-3563.2478,7.1270) || IsPlayerInRangeOfPoint(playerid, 5.0, 1815.6116,-3563.2478,7.1270))

 
Ez csak egy példa kordináta és így tovább.
Cím: Egy parancs több helyen.
Írta: sziaocsi - 2013. február 28. - 13:39:29
Idézetet írta: ZyZu date=1362054620\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"34270\" data-ipsquote-contentclass=\"forums_Topic

if(IsPlayerInRangeOfPoint(playerid, 5.0, 1815.6116,-3563.2478,7.1270) || IsPlayerInRangeOfPoint(playerid, 5.0, 1815.6116,-3563.2478,7.1270))

 
Ez csak egy példa kordináta és így tovább.
 
Köszönöm!!!!