06.07.2009, 20:11
I believe that it has to be done in OnPlayerText
just do something like PlayerAtCheckpoint[playerid] = 1; when he enter that checkpoint
something like this
OnPlayerText
just do something like PlayerAtCheckpoint[playerid] = 1; when he enter that checkpoint
something like this
OnPlayerText
pawn Код:
if(PlayerAtCheckpoint[playerid] == 1)
{
if (strcmp(text,"1",true) == 0)
{
SendClientMessage(playerid,0x38FF06FF,"Selection 1");
PlayerAtCheckpoint[playerid] = 0;
return 0;
}
else if (strcmp(text,"2",true) == 0)
{
SendClientMessage(playerid,0x38FF06FF,"Selection 2");
PlayerAtCheckpoint[playerid] = 0;
return 0;
}
else
{
SendClientMessage(playerid,0xE60000FF,"Must select 1 or 2.");
return 0;
}
}