Bonsoir à tous, pour résumé, j'ai fais plusieurs textdraw qui s'affichent à la connexion du joueur, et je voudrais tous les supprimer quand il appuie sur "Entrée", alors j'ai fait ça :
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_SECONDARY_ATTACK)
{
TextDrawDestroy(Text:Textdraw3);
TextDrawDestroy(Text:Textdraw4);
TextDrawDestroy(Text:Textdraw5);
TextDrawDestroy(Text:Textdraw6);
TextDrawDestroy(Text:Textdraw7);
TextDrawDestroy(Text:Textdraw8);
}
return 1;
}
Donc ça marche bien, sauf que ça marche que quand le joueur a spawn, alors que je voudrais que ça le fasse à l'écran de connexion.
Par ailleurs, je voudrais justement cacher ou annuler le bouton spawn avant justement d'avoir appuyer sur entrée, comment je pourrais faire ? J'ai vu quelque part qu'on pouvait se servir de "TogglePlayerSpectating(playerid, 0);" mais sans expliquer comment.
Merci beaucoup d'avance à ceux qui m'aideront !