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

San Andreas Multiplayer (SA-MP) => Szkript kérések => SA-MP: Szerverfejlesztés => RP/RPG kérések => A témát indította: Ricsmix - 2012. április 15. - 17:41:57

Cím: Dialogos kérés
Írta: Ricsmix - 2012. április 15. - 17:41:57
Hogy lehet azt megcsinálni fs be hogyha valaki oda áll egy helyre akkor beugrik neki egy dialog és kiirja azt amit mi beleirtunk
 

ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,\"Notice\",\"You connected to the server\",\"Close\",\"\");

 
ebben a formában
Cím: Dialogos kérés
Írta: $uRí - 2012. április 15. - 17:48:05

if(IsPlayerInRangeOfPoint(playerid, 7.0, X,Y,Z))
    {
        ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,\"Notice\",\"You connected to the server\",\"Close\",\"\");
    }
    return 1;
}

 
Probáld meg így, de most attol füg hol akkarod? Egy adott helyen vagy Spawnkor ?
Cím: Dialogos kérés
Írta: Ricsmix - 2012. április 15. - 18:09:18
egy adott helyen
de nem tudnád nekem beleirni egy fs be légyszi?
Cím: Dialogos kérés
Írta: Gabor.. - 2012. április 15. - 18:11:11
#include <a_samp>
public OnPlayerUpdate(playerid)
{
     if(IsPlayerInRangeOfPoint(playerid, 7.0, X, Y, Z))// X, Y, Z helyére írd a kordinátát!
     {
        ShowPlayerDialog(playerid, 1 , DIALOG_STYLE_MSGBOX, \"Notice\", \"You connected to the server\", \"Close\",\"\");
     }
     return 1;
}

Így talán. Amikor belemegy a láthatatlan CP-be, akkor kiadja neki, így nem kell parancsal stb...
Cím: Dialogos kérés
Írta: $uRí - 2012. április 15. - 18:13:45
Megelõztél  :thumbsup:
De itt van parancsal is ha így kellene:
 

#include <a_samp>
#include <zcmd>
public OnFilterScriptInit()
{
print(\"\\n--Szkript Betöltve!.\\n\");
return 1;
}
CMD:parancs(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, X,Y,Z))
    {
        ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,\"Notice\",\"You connected to the server\",\"Close\",\"\");
    }
return 1;
}

 
Írd átt az X,Y,Z kordinátákat hol szeretnéd használni a parancsot !!
Cím: Dialogos kérés
Írta: Ricsmix - 2012. április 15. - 18:21:44
Kösz:D:P csak hol itt a parancs XD
+ment :)
Cím: Dialogos kérés
Írta: Gabor.. - 2012. április 15. - 18:23:31
Most parancsosra akarod, vagy ha simán odamegy, és kiírja?
Mert ha azt akarod, hogy ha simán odamegy, és kiíja neki, akkor ezt használd!
 
#include <a_samp>
public OnPlayerUpdate(playerid)
{
     if(IsPlayerInRangeOfPoint(playerid, 7.0, X, Y, Z))// X, Y, Z helyére írd a kordinátát!
     {
        ShowPlayerDialog(playerid, 1 , DIALOG_STYLE_MSGBOX, \"Notice\", \"You connected to the server\", \"Close\",\"\");
     }
     return 1;
}
Cím: Dialogos kérés
Írta: Ricsmix - 2012. április 15. - 18:25:05
okés köszi gabi neked is még annyit oldj már meg nekem hogy többet egy más alá hogy tudok mert látom itt nem ugy van a zárás.. vagy nem is értem mind1 azt ha megtudnád még megköszönném
mármint több dialogot hogy egyik ittvan másik ott az a lényeg ezzel a mintával tudjak sokat..
Cím: Dialogos kérés
Írta: Gabor.. - 2012. április 15. - 18:26:42
Így: :)
 
#include <a_samp>
public OnPlayerUpdate(playerid)
{
     if(IsPlayerInRangeOfPoint(playerid, 7.0, X, Y, Z))// X, Y, Z helyére írd a kordinátát!
     {
        ShowPlayerDialog(playerid, 1 , DIALOG_STYLE_MSGBOX, \"Notice\", \"You connected to the server\", \"Close\",\"\");
     }
     if(IsPlayerInRangeOfPoint(playerid, 7.0, X, Y, Z))// X, Y, Z helyére írd a kordinátát!
     {
        ShowPlayerDialog(playerid, 1 , DIALOG_STYLE_MSGBOX, \"Józsi\", \"Józsi bácsi!\", \"Close\",\"\");
     }
     return 1;
}

Ez alapján még tovább tudod csinálni.
Cím: Dialogos kérés
Írta: $uRí - 2012. április 15. - 18:40:39
Idézetet írta: $uRí date=1334506425\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"20235\" data-ipsquote-contentclass=\"forums_Topic
Megelõztél  :thumbsup:
De itt van parancsal is ha így kellene:
 

#include <a_samp>
#include <zcmd>
public OnFilterScriptInit()
{
print(\"\\n--Szkript Betöltve!.\\n\");
return 1;
}
CMD:parancs(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, X,Y,Z))
    {
        ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,\"Notice\",\"You connected to the server\",\"Close\",\"\");
    }
return 1;
}

 
Írd átt az X,Y,Z kordinátákat hol szeretnéd használni a parancsot !!
 
javítva! És megcsináltam ZCMD -vel!