GTA-Center.com » Forum http://www.gta-center.com/forums/ |
|
[RISOLTO][HELP]Funzione Skin e nick http://www.gta-center.com/forums/viewtopic.php?f=41&t=1248 |
Pagina 1 di 1 |
Autore: | OwenD [ 22/06/2011, 19:40 ] |
Oggetto del messaggio: | [RISOLTO][HELP]Funzione Skin e nick |
Scusate , volevo sapere se ce una funzione che quando digiti un comando setta la skin del player con la skin definita e una funzione che aggiunge una targhetta al nick.Quindi vi chiedo , si può? |
Autore: | Angelo [ 22/06/2011, 20:12 ] |
Oggetto del messaggio: | Re: [HELP]Funzione Skin e nick |
per la skin esiste il SetPlayerSkin(playerid, skinID); per aggiungere una targhetta al nick usa questa funzione: Codice: stock AggiungiTarghetta(Nome[], Tag[], pos) { if(!strlen(Nome)) return 0; new Finalstr[32]; new Lenght = strlen(Nome); Finalstr = Nome; strins(Finalstr, Tag, pos); return Finalstr; } Uso: Codice: new Nome[24]; Nome = "Angelo"; AggiungiTarghetta(Nome, "[LOL]", 0); //aggiunge al nome la targhetta [LOL] al carattere 0 (cioè prima del nome) In questo modo il Nome diventerà [LOL]Angelo |
Autore: | OwenD [ 22/06/2011, 20:14 ] |
Oggetto del messaggio: | Re: [HELP]Funzione Skin e nick |
ok ok risolto tutto thanks p.s.: a me funge pure SetPlayerName(playerid, [LOL]%s); |
Pagina 1 di 1 | Tutti gli orari sono UTC + 1 ora [ ora legale ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |