Ahoj spravíl som si textdraw na ukázanie 5 sec a za 5 sec zmyzne ale ked idem na server níč neukáže tu je kod
forward TimeUp(playerid);
public TimeUp(playerid)
{
TextDrawDestroy(nextmap);
return 1;
}
v ongamemodeinit
nextmap = TextDrawCreate(240.0,580.0,"Načítavam mapu");
TextDrawBackgroundColor(nextmap, 255);
ukázanie textdrawu
public StartedNewRound()
{
for(new i = 0; i < MAX_PLAYERS; i++) {
SpawnPlayer ( i ) ;
switch ( MapChange ) {
case 0:
{
SendClientMessage(i,COLOR,"Nová mapa načítaná");
}
case 1:
{
TextDrawShowForPlayer(i, nextmap);
SetTimerEx("TimeUp", 5000, false, "i", i);
}
case 2:
{
SendClientMessage(i,COLOR,"Nová mapa načítaná");
}
}
}
return 1;
}