12.10.2009, 16:08
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
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
Код:
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; }
http://pastebin.com/m49b7dc9f
hope someone will have time and test it and make the timer to close text draws and camera ... ty