forward OtherTimer();
forward CheckForExitAirport(playerid);
OnGameModeInit //blabla
SetTimer("OtherTimer", 1000, 1);
public OtherTimer()
{
new string[256];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (TutStep[i] == 1) CheckForExitAirport(i);
//blabla
}
}// blabla
return 1;
}
public CheckForExitAirport(playerid)
{
if(!PlayerToPoint(80.0, playerid, NOOB_X, NOOB_Y, NOOB_Z))
{
PlayerPlaySound(playerid, 1138, 0.0, 0.0, 0.0);
SendClientMessage(playerid, COLOR_WHITE, "");
SendClientMessage(playerid, COLOR_GREEN, "Ok, vous avez rйusssi а quitter l'aйroport, c'est une premiиre йtape.");
SendClientMessage(playerid, COLOR_GREEN, "Maintenant il vous faut un peu d'argent, allez donc retirer quelques dollars а la banque.");
SetPlayerCheckpoint(playerid, 1462.45874,-1012.13733,26.84379, 5.0); //Bank Entrance
TutStep[playerid] = 2;
}
}
Originally Posted by Daren_Jacobson
put a space on the SendClientMessage " " instead of ""
|