28.10.2010, 22:53
Hey,
I quickly made this tutorial type thing, but when you spawn it doesnt do anything.
I quickly made this tutorial type thing, but when you spawn it doesnt do anything.
pawn Код:
public OnPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][pTut] == 0)
{
InfoTimer[playerid] += 1;
if(InfoTimer[playerid] == 3)
{
new name[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, 128, "Greetings %s, Welcome to Heathrow Airport, London.", name);
SendClientMessage(playerid, COLOR_WHITE, string);
}
if(InfoTimer[playerid] == 5)
{
SendClientMessage(playerid, COLOR_WHITE, "Airport Checkout Says: I hope you enjoyed your flight.");
}
if(InfoTimer[playerid] == 7)
{
SendClientMessage(playerid, COLOR_WHITE, "Airport Checkout Says: Before you can checkout from Heathrow Airport, We just need some details.");
}
if(InfoTimer[playerid] == 10)
{
ShowPlayerDialog(playerid,3,DIALOG_STYLE_LIST,"Gender:","Male\nFemale","Select","Cancel");
InfoTimer[playerid] = 0;
}
}
return 1;
}