Quote:
Originally Posted by jotajeda
pawn Код:
new PlayerText3D:pTextLabel, tiempoPausa[MAX_PLAYERS], enPausa[MAX_PLAYERS], cadena[50];
forward timer_1m(); public timer_1m() { foreach(i, Player) { if (enPausa[i] == 1) { tiempoPausa[i]++; new Float: Pos[3]; GetPlayerPos(i,Pos[0],Pos[1],Pos[2]); format(cadena, sizeof(cadena), "[%i minutos]", tiempoPausa[i]); pTextLabel = CreatePlayer3DTextLabel(i,cadena, 0xFFFF00FF, Pos[0], Pos[1], Pos[2], 40.0); } else { DeletePlayer3DTextLabel ( i, pTextLabel ) ; tiempoPausa[i] = 0; enPausa[i] = 1; } } return 1; }
https://sampwiki.blast.hk/wiki/DeletePlayer3DTextLabel
|
muchнsimas gracias men lo probare.