24.03.2012, 12:49
I want to show players a dialog, but NOT if they have less than one hour playtime.
How do i define two IFs in one?
Example:
That's my command, But i want to include this too:
Basically, if they are at place and have one hour play time it shows.
If less than 1 hour playing time: YOU CANT BUY
If they arent at the place, they get a message
how do i include two IFs in one?
something like as in INRANGEBLABLA && HASTIME BLABLA
+rep for best answer
How do i define two IFs in one?
Example:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid,COORDZ))
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "DIALOG Stuff here");
}
pawn Код:
if(PlayerInfo[playerid][pHourz] < 1)
{
SendClientMessage(playerid, COLOR-HERE, " Text here.");
return 1;
}
If less than 1 hour playing time: YOU CANT BUY
If they arent at the place, they get a message
how do i include two IFs in one?

something like as in INRANGEBLABLA && HASTIME BLABLA
+rep for best answer