20.12.2014, 21:26
PHP код:
if (strcmp("/plixo", cmdtext, true, 10) == 0) {
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 451) {
if(PlayerInfo[ playerid ][pProfissao] == Mecanico) {
SendClientMessage(playerid,Vermelho,"Vocк jб estб fazendo a Missгo!");
return 1;
}
new rand = random(sizeof(checkpoints));
SetPlayerCheckpoint(playerid,checkpoints[rand][0],checkpoints[rand][1],checkpoints[rand][2],checkpoints[rand][3]);
GameTextForPlayer(playerid, "~g~Vocк comeзou o trabalho, boa sorte!", 3000, 3);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s agora estб fazendo a missгo Truck.", name );
SendClientMessageToAll(Vermelho, string);
return 1;
}
SendClientMessage(playerid, Vermelho,"Vocк tem que ser em um caminhгo para iniciar o trabalho");
return 1;
}
PHP код:
new Float: checkpoints[5][4] =
{
{ 2798.1702,-1576.2926,10.9272, 10.0 },
{ 2060.4375,-2091.2126,13.5469, 10.0 },
{ 070.8125,-2384.6160,13.5469, 10.0 },
{ 900.7358,-1204.0779,16.9832, 10.0 },
{ 800.1103,-1542.8258,13.5526, 10.0 }
};