19.12.2014, 23:33
Quote:
Ali onde ta a mensagem, como eu poderia colocar um timer? ex:
if(time = 10) { SendClientMessage(playerid, -1 "EAEEEE CARINHA NOVATO! TUDO BLZ?!"); } como poderia fazer tipo um timer para ir passando as mensagens ali dentro? |
pawn Код:
forward Parte2(playerid);
public Parte2(playerid)
{
SetPVarInt(playerid, "Parte2", 15);
return 1;
}
SetPVarInt(playerid,"Registrado", 14);
//OnPlayerSpawn
if(GetPVarInt(playerid,"Registrado") == 14)
{
// inicia o tutorial
SendClientMessage(playerid, -1 "EAEEEE CARINHA NOVATO! TUDO BLZ?!");
SetTimerEx("Parte2", 20000, false, "i", playerid);
}
if(GetPVarInt(playerid, "Parte2") == 15)
{
SendClientMessage(playerid, -1, "Parte 2 do tutorial");
}
//fim do tutorial
DeletePVar(playerid,"Registrado");
DeletePVar(playerid, "Parte2");