04.09.2012, 17:29
put something like this under you'r drivers license system and make it a enum or somert e.g
I put that code under where i start my theory test and have this under on player chat.
pawn Код:
PlayerInfo[playerid][Intest] = 1
pawn Код:
public OnPlayerText(playerid, text[])
{
if(!strcmp(text, "Yes", true) && PlayerInfo[playerid][Intest] == 1)
{
//your code for after yes here.
SendClientMessageToAll(green, "Driving Instructor: Ok Next quest !"); // do what ever you want here.
return 0;
}
return 1;
}