SA-MP Forums Archive
[Ajuda] checkpoint - 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] checkpoint (/showthread.php?tid=554998)



checkpoint - chefaoBR - 06.01.2015

Olб , galera estou com um problema nesse code. quando eu entro no caminhгo , e digito
Код:
/plixo
fala que "Vocк jб estб fazendo a Missгo de caminhгo de lixeiro" ajuda ae.


PHP код:
 if (strcmp("/plixo"cmdtexttrue10) == 0) {
    if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 455) {
    if(
PlayerInfoplayerid ][pProfissao] == Assaltante){
    
SendClientMessage(playerid,VerdeClaro,"Vocк jб estб fazendo a Missгo de lixeiro");
    return 
1;
    }
    new 
rand random(sizeof(checkpointsosmar));
    
SetPlayerCheckpoint(playerid,checkpointsosmar[rand][0],checkpointsosmar[rand][1],checkpointsosmar[rand][2],checkpointsosmar[rand][3]);
    
GameTextForPlayer(playerid"~g~Vocк comeзou o trabalho, boa sorte!"30003);
    new 
string1[48];
    new 
name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    
format(string1sizeof(string1), "%s agora estб fazendo a missгo Truck."name );
    
SendClientMessageToAll(VerdeClarostring1);
    return 
1;
    }
    
SendClientMessage(playeridVerdeClaro,"Vocк tem que ser em um caminhгo para iniciar o trabalho");
    return 
1;
    } 



Re: checkpoint - Bruno13 - 06.01.2015

pawn Код:
if(PlayerInfo[playerid][pProfissao] == Assaltante){
    SendClientMessage(playerid,VerdeClaro,"Vocк jб estб fazendo a Missгo de lixeiro");
    return 1;
}
Que isso cara? Se a profissгo dele for Assaltante quer dizer que ele jб esta fazendo a missгo?...