30.12.2013, 11:55
New:
Comandos:
Local pra pegAWN]
Local pra pegar e entregar:
Eu tirei o AreaEntrega, pra vк se vocк consegue colocar
pawn Код:
new AreaEntrega[MAX_PLAYERS];
Comandos:
pawn Код:
if(strcmp(cmd, "/pegarcarga", true) == 0) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
new modelo;
modelo = GetVehicleModel(VehicleID);
if(modelo == 515) {
if(CargaCaminhao[playerid] == 0){
SendClientMessage(playerid,COLOR_GREEN,"Carga pegada!");
SendClientMessage(playerid,COLOR_GREEN,"Para entrega-lб, siga os pontos para chegar no local");
CargaCaminhao[playerid] = 1;
return 1;
} else {
SendClientMessage(playerid,Vermelho,"[ERRO] Seu caminhгo jб estб carregado!");
return 1;
}
} else {
SendClientMessage(playerid, Vermelho, "[ERRO] Vocк nгo estб em um caminhгo de entregar de carga.");
return 1;
}
}
if(strcmp(cmd,"/entregarcarga",true) == 0){
if(CargaCaminhao[playerid] == 0){
SendClientMessage(playerid,Vermelho,"[ERRO] Seu veнculo nгo estб com a carga!");
return 1;
} else {
CargaCaminhao[playerid] = 1;
SendClientMessage(playerid,COLOR_GREEN,"(INFO) Sua carga foi entregada e vocк ganhou R$: 1.500,00 reais.");
GivePlayerGrana(playerid,1500);
return 1;
}
}
Local pra pegAWN]
Local pra pegar e entregar:
pawn Код:
if (PlayerToPoint(10.0, i, 2203.1601, -2252.2939, 13.2739)){
GameTextForPlayer(i,"~b~Area ~n~~y~De ~n~~g~Carregamento ~n~~p~/pegarcarga",3000,4);
}
if (PlayerToPoint(10.0, i, 1704.3691, 2332.8310, 10.5472)){
GameTextForPlayer(i,"~b~Area ~n~~y~De ~n~~r~Descarregamento ~n~~p~/entregarcarga",3000,4);
}
}
}
}
}
}
}

