21.05.2011, 15:17
Well, I have attempted to make a talking bot which will talk to you, I have tried to set it on a timer but it just does not work.
This part works apart from the "SetTimer".
This part works apart from the "SetTimer".
pawn Код:
if(vehicleid == botcar)
{
SendClientMessage(playerid, COLOR_GREY, "Taxi Driver says: Welcome to the Taxi mate, please sit back and enjoy the ride.");
SetTimer("TaxiTalk", 60000, true);
}
pawn Код:
forward TaxiTalk(playerid);
public TaxiTalk(playerid)
{
ProxDetector(3.0, playerid, "Taxi Driver says: Haven't I seen you before?", COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY);
ProxDetector(3.0, playerid, "Taxi Driver says: Lovely weather we are having.", COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY);
ProxDetector(3.0, playerid, "Taxi Driver says: You look happy.", COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY);
return 1;
}