SA-MP Forums Archive
[Ajuda] Nгo estб setando a profissгo - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Nгo estб setando a profissгo (/showthread.php?tid=629701)



Nгo estб setando a profissгo - SmokiieGamer - 02.03.2017

PHP код:
Resolvido.




Re: Nгo estб setando a profissгo - SmokiieGamer - 02.03.2017

Quote:
Originally Posted by Carlos001
Посмотреть сообщение
PHP код:
CMD:setprof(playeridparams[]) 

    new 
idstring[500]; 
    new 
aname[24], pname[24]; 
    
GetPlayerName(idanamesizeof(aname)); 
    
GetPlayerName(playeridpnamesizeof(pname)); 
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1"| ERRO | Vocк nгo estб logado na RCON."); 
    if(
sscanf(params"d"id))return SendClientMessage (playerid, -1"| ERRO | Uso Correto: /Setprof [id]." ); 
    if(!
IsPlayerConnected(id)) return SendClientMessage(playerid, -1"| ERRO | Player nгo conectado."); 
    
SendClientFormat(id, -1"O(A) admin %s tornou vocк um(a) caminhoneiro(a)."pname); 
    
SendClientFormat(playerid, -1"Vocк setou o(a) %s um(a) caminhoneiro(a)."aname); 
    
Prof[id][Profissao] = Caminhoneiro
    
SetPlayerPos(id1381.920654, -1021.68402010.820312); 
    
SetPlayerColor(idC_Caminhoneiro); 
    return 
1

Testei й esta funcionando!
Jб tinha resolvido rsrs'
mas vlw mesmo assim