help with onplayerspawn
#1

now i made when cops spawn there is nice police training textdraw for them so now i want to make timer to close this text draw and i dont know how to make it ^^ here is my code

Код:
public OnPlayerSpawn(playerid)
{
  if(gTeam[playerid] == TEAM_FBI || gTeam[playerid] == TEAM_SHERIFF || gTeam[playerid] == TEAM_COP)
  {
  TextDrawShowForPlayer(playerid,Text:Textdraw0);
  TextDrawShowForPlayer(playerid,Text:Textdraw1);
  TextDrawShowForPlayer(playerid,Text:Textdraw2);
  TextDrawShowForPlayer(playerid,Text:Textdraw3);
  TextDrawShowForPlayer(playerid,Text:Textdraw4);
  TextDrawShowForPlayer(playerid,Text:Textdraw5);
  TextDrawShowForPlayer(playerid,Text:Textdraw6);
  TextDrawShowForPlayer(playerid,Text:Textdraw7);
  TextDrawShowForPlayer(playerid,Text:Textdraw8);
  TextDrawShowForPlayer(playerid,Text:Textdraw9);
  TextDrawShowForPlayer(playerid,Text:Textdraw10);
  TextDrawShowForPlayer(playerid,Text:Textdraw11);
  TextDrawShowForPlayer(playerid,Text:Textdraw12);
  
  SetPlayerInterior(playerid,0);
  SetPlayerCameraPos(playerid,2290.5300,2400.1262,18.4163);
  SetPlayerCameraLookAt(playerid, 2290.1648,2429.6484,10.8203);
  }
  return 1;
}
if i have this, the textdraws are showed all game :P now i need timer about 10 sec and then text draws close and camera is not ''looking in LV PD'' here is my full code and you can test how it is looking atm:

http://pastebin.com/m49b7dc9f

hope someone will have time and test it and make the timer to close text draws and camera ... ty
Reply


Messages In This Thread
help with onplayerspawn - by Lajko1 - 12.10.2009, 16:08
Re: help with onplayerspawn - by Memoryz - 12.10.2009, 16:20
Re: help with onplayerspawn - by Lajko1 - 12.10.2009, 16:51
Re: help with onplayerspawn - by Lajko1 - 13.10.2009, 13:45
Re: help with onplayerspawn - by dice7 - 13.10.2009, 14:43
Re: help with onplayerspawn - by westre - 13.10.2009, 14:49
Re: help with onplayerspawn - by Lajko1 - 13.10.2009, 17:23
Re: help with onplayerspawn - by (.Aztec); - 13.10.2009, 17:41
Re: help with onplayerspawn - by Lajko1 - 14.10.2009, 17:22

Forum Jump:


Users browsing this thread: 1 Guest(s)