[Pomoc] Svadba

Započeo kim3205
2. Dec. 2014. Zaključano
484
pregleda
10
postova
PedjaZakon
5
Godfather
2. Dec. 2014.
Skripta koju koristim:LS
Detaljan opis problema:Kako da napravim na mod i dodam CMD na lokaciji (koju ja oc) da moze /propose i /witnes za svadbu da zaprosi mladu i da uzmem kuma i kumicu
Dio skripte: Meni treba
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Rudimental
5
OG Legend
2. Dec. 2014.
Ako sam te dobro razumeo ti hoces da sredis da se te 2 komande mogu koristiti samo na nekoj lokaciji ?
Ako je tako onda samo u komandu dodas nesto tipa
if (!IsPlayerInRangeOfPoint(playerid, Float:range, Float:x, Float:y, Float:z)) return SCM (playerid, -1, "Text");


http://wiki.sa-mp.com/wiki/IsPlayerInRangeOfPoint
PedjaZakon
5
Godfather
2. Dec. 2014.
mozda sam nerazuman xD hocu da dodam u modu CMD /propose i /witnes i na stats da se vidim sa kim je u vezi
Rudimental
5
OG Legend
2. Dec. 2014.
A to te zanima 😄 sto odma tako ne kazes 😛
To bi ovako od prilike izgledala linija kojom bi se upisivalo ime
strmid(PlayerInfo, GetName(id), 0, strlen(GetName(id)), 255);
PedjaZakon
5
Godfather
2. Dec. 2014.
â–… â–† â–ˆ Rudimental â–ˆ â–† â–… wrote on December 2, 2014, 9:13 pm:
A to te zanima 😄 sto odma tako ne kazes 😛
To bi ovako od prilike izgledala linija kojom bi se upisivalo ime
strmid(PlayerInfo, GetName(id), 0, strlen(GetName(id)), 255);


hahahaha jel ti to mene zsmejavas ? kazem hocu da dodam CMD:propose i CMD:witnes kako bih se parovi spojili i pisalo u stats s kim je u vezi
luka2223
4
Enforcer
2. Dec. 2014.
Pinki nemam sad vremenasutra ujutro cu ti poslat  witness propose I accept za to
PedjaZakon
5
Godfather
2. Dec. 2014.
luka2223 wrote on December 2, 2014, 10:54 pm:
Pinki nemam sad vremenasutra ujutro cu ti poslat  witness propose I accept za to


Vazi ti postavi ovde il spremi u pastebin i javi mi na fb https://www.facebook.com/pacinop
kako os
Rax_King
5
Godfather
3. Dec. 2014.
http://solidfiles.com/d/78fc/

Eto to sam ukrao sa sa-mp foruma pokusaj nesto sa tim 🙂
PedjaZakon
5
Godfather
3. Dec. 2014.
xaxaxa lopove ok videdcu 😄
luka2223
4
Enforcer
3. Dec. 2014.
Evo ti ovo:
YCMD:propose(playerid, params[], help)
{
if(help) return SCM(playerid, COLOR_GREY, "Not supported");

if(IsPlayerConnected(playerid))
{
if(GetPlayerMoney(playerid) < 20000)
{
SCM(playerid, COLOR_GREY, "  The Marriage & Reception costs $20000 !");
return 1;
}
if(PlayerInfo > 0)
{
SCM(playerid, COLOR_GREY, "  You are already Married !");
return 1;
}
if(PlayerInfo == 9999)
{
SCM(playerid, COLOR_GREY, "  You don't have a House to let your Wife / Husband live somewhere !");
return 1;
}
new string, giveplayerid;
if(sscanf(params, "u", giveplayerid))
{
SCM(playerid, COLOR_WHITE, "USAGE: /propose [Playerid/PartOfName]");
return 1;
}
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(PlayerInfo > 0)
{
SCM(playerid, COLOR_GREY, "  That player is already Married !");
return 1;
}
if(PlayerInfo != 9999)
{
SCM(playerid, COLOR_GREY, "  That player has a House, can't be Married !");
return 1;
}
if(PlayerInfo != 9999)
{
SCM(playerid, COLOR_GREY, "  That player has a Business, can't be Married !");
return 1;
}
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
if(giveplayerid == playerid) { SCM(playerid, COLOR_GREY, "You cannot Propose to yourself!"); return 1; }
format(string, sizeof(string), "* You proposed to %s.", GetPlayerNameEx(giveplayerid));
SCM(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* %s just proposed to you (type /accept marriage) to accept.", GetPlayerNameEx(playerid));
SCM(giveplayerid, COLOR_WHITE, string);
ProposeOffer = playerid;
}
else
{
SCM(playerid, COLOR_GREY, "  That player is not near you !");
return 1;
}
}
}
else
{
SCM(playerid, COLOR_GREY, "  That player is Offline !");
return 1;
}
}
return 1;
}

YCMD:witness(playerid, params[], help)
{
if(help) return SCM(playerid, COLOR_GREY, "Not supported");

if(IsPlayerConnected(playerid))
{
new string, giveplayerid;
if(sscanf(params, "u", giveplayerid))
{
SCM(playerid, COLOR_WHITE, "USAGE: /witness [Playerid/PartOfName]");
return 1;
}
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
if(giveplayerid == playerid) { SCM(playerid, COLOR_GREY, "You cannot Propose to yourself!"); return 1; }
format(string, sizeof(string), "* You requested %s to be your Marriage Witness.", GetPlayerNameEx(giveplayerid));
SCM(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* %s just requested you to be his Marriage Witness (type /accept witness) to accept.", GetPlayerNameEx(playerid));
SCM(giveplayerid, COLOR_WHITE, string);
MarryWitnessOffer = playerid;
}
else
{
SCM(playerid, COLOR_GREY, "  That player is not near you !");
return 1;
}
}
}
else
{
SCM(playerid, COLOR_GREY, "  That player is Offline !");
return 1;
}
}
return 1;
}

Imas ovo kao za accept
		else if(strcmp(x_job,"witness",true) == 0)
{
if(MarryWitnessOffer < 999)
{
if(IsPlayerConnected(MarryWitnessOffer))
{
if(ProxDetectorS(10.0, playerid, MarryWitnessOffer))
{
GetPlayerName(MarryWitnessOffer, giveplayer, sizeof(giveplayer));

format(string, sizeof(string), "* You have accepted %s's request to be his Marriage Witness.", giveplayer);
SCM(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* %s has accepted your request to be your Marriage Witness.", sendername);
SCM(MarryWitnessOffer, COLOR_WHITE, string);
MarryWitness[MarryWitnessOffer] = playerid;
MarryWitnessOffer = 999;
return 1;
}
else
{
SCM(playerid, COLOR_GREY, "  The player that requested you to be his Marriage Witness is not near you !");
return 1;
}
}
}
else
{
SCM(playerid, COLOR_GREY, "  No-one asked you to be his Marriage Witness !");
return 1;
}
}
else if(strcmp(x_job,"marriage",true) == 0)
{
if(ProposeOffer < 999)
{
if(!IsPlayerInRangeOfPoint(playerid, 10, 2232.3047,-1333.1543,23.9815))
{
SCM(playerid, COLOR_GREY, "  You are not at the Church in Jefferson !");
return 1;
}
if(IsPlayerConnected(ProposeOffer))
{
if(ProxDetectorS(10.0, playerid, ProposeOffer))
{
if(MarryWitness[ProposeOffer] == 999)
{
SCM(playerid, COLOR_GREY, "  The proposer doesn't have a Marriage Witness !");
return 1;
}
if(IsPlayerConnected(MarryWitness[ProposeOffer]))
{
if(ProxDetectorS(12.0, ProposeOffer, MarryWitness[ProposeOffer]))
{
GetPlayerName(ProposeOffer, giveplayer, sizeof(giveplayer));

format(string, sizeof(string), "* You have accepted %s's request to be your Husband.", giveplayer);
SCM(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* %s has accepted your request to be your Wife.", sendername);
SCM(ProposeOffer, COLOR_WHITE, string);
format(string, sizeof(string), "Priest: %s do you take %s as your lovely Husband? (type 'yes', anything else will reject the Marriage)", sendername, giveplayer);
SCM(playerid, COLOR_WHITE, string);
MarriageCeremoney = 1;
ProposedTo[ProposeOffer] = playerid;
GotProposedBy = ProposeOffer;
MarryWitness[ProposeOffer] = 999;
ProposeOffer = 999;
return 1;
}
else
{
SCM(playerid, COLOR_GREY, "  The Marriage Witness is not near your proposer !");
return 1;
}
}
return 1;
}
else
{
SCM(playerid, COLOR_GREY, "  The player that proposed to you is not near you !");
return 1;
}
}
}
else
{
SCM(playerid, COLOR_GREY, "  No-one Proposed to you !");
return 1;
}
}

Varijable:
new DivorceOffer;
new MarriageCeremoney;
new ProposeOffer;
new ProposedTo;
new GotProposedBy;
new MarryWitness;
new MarryWitnessOffer;

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha