Marriage System
#1

Ok so i'm going to use OnPlayerText for the following

• if the man or woman type /marry [playerid] the man or woman will ask

Will You Marry me, PlayerName?

So now i will set InMarriage to 1 and will use OnPlayerText but how to do this?

Код:
PlayerName accept your married request!

or

PlayerName decline your married request!
i know i will use strcmp or strmid but how do i sent that message to the man/woman who request for married?
Reply
#2

Under OnPlayerText
pawn Код:
if(InMarriage[playerid] == 1 && strcmp("yes",text,true) == 0)
{
    // code here
    return 1;
}
Reply
#3

Yes i know but how could i sent the message to the marry requester?

Ex.

i'm about to type /marry 9 so i'm the marry requester

then in id 9 screen is

pawn Код:
Will you Marry me, PlayerName?
so if she say Yes or No it will sent to me how to do that
Reply
#4

Quote:
Originally Posted by RollTi
Посмотреть сообщение
Yes i know but how could i sent the message to the marry requester?

Ex.

i'm about to type /marry 9 so i'm the marry requester

then in id 9 screen is

pawn Код:
Will you Marry me, PlayerName?
so if she say Yes or No it will sent to me how to do that
Up Up!
Reply
#5

You do this by using format, and GetPlayerName.
Reply
#6

Never mind i use /marryaccept instead of OnPlayerText

rep+ for you vincentdunn
Reply
#7

one more question

Ex.

if i'm male and the id i put in /marry is male i should get

pawn Код:
You cannot marry male to male!
or

pawn Код:
You cannot marry female to female!
i already have Gender system which is this

pawn Код:
pInfo[playerid][Gender]
Reply
#8

pawn Код:
if(pInfo[playerid][Gender] == pInfo[id][Gender])
{
    return SendClientMessage(playerid, -1, "You cannot marry someone the same gender as you!");
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)