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



Carga - Wallker - 19.08.2012

Bom, estava fasendo sistema para pegar carga, ai veio na cabeзa como vou verificar se ele estб com a carga ou nгo?

bom vindo pedir ajuda aqui, caso tenha uma funзгo para isso, ou algo do tipo postem ae!


Re: Carga - Bruno Alves - 19.08.2012

pawn Code:
//aqui um exemplo, sу um exemplo! '-'
//no topo
new EmCarga[MAX_PLAYERS];
//CMD
CMD:carregar(playerid)
{
    if(EmCarga[playerid] == 1) return SendClientMessage(playerid, -1, "Termine esta carga 1°!!!");
    EmCarga[playerid] = 1;
    return 1;
}
CMD:descarregar(playerid)
{
    if(EmCarga[playerid] == 0) return SendClientMessage(playerid, -1, "Ja esta descarregado!!!");
    EmCarga[playerid] = 0;
    return 1;
}



Re: Carga - FeelLikeASir_ - 19.08.2012

https://sampwiki.blast.hk/wiki/IsTrailerAttachedToVehicle


AW: Re: Carga - Wallker - 19.08.2012

Quote:
Originally Posted by Bruno Alves
View Post
pawn Code:
//aqui um exemplo, sу um exemplo! '-'
//no topo
new EmCarga[MAX_PLAYERS];
//CMD
CMD:carregar(playerid)
{
    if(EmCarga[playerid] == 1) return SendClientMessage(playerid, -1, "Termine esta carga 1°!!!");
    EmCarga[playerid] = 1;
    return 1;
}
CMD:descarregar(playerid)
{
    if(EmCarga[playerid] == 0) return SendClientMessage(playerid, -1, "Ja esta descarregado!!!");
    EmCarga[playerid] = 0;
    return 1;
}
ja fis isso kra, tah completo sу doq presiso й uq o kra ali posto