[Ajuda] Com comandos
#3

Cidade use IsPlayerInRangeOfPoint.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext,"/abastecer",true))
    {
        if(!IsPlayerInAnyVehicle(playerid))
            return SendClientMessage(playerid, -1, "Vocк nгo estб em um veнculo");
        if(!Locais(playerid))
            return SendClientMessage(playerid, -1, "Vocк nгo estб no local de abastecer.");
        VehicleFuel[GetPlayerVehicleID(playerid)] = 100 + random(50);
        return 1;
    }
    return 0;
}


Locais(playerid) {
    if(IsPlayerInRangeOfPoint(playerid,/*Raio,x,y,z*/) || IsPlayerInRangeOfPoint(playerid,/*Raio,x,y,z*/)
    || IsPlayerInRangeOfPoint(playerid,/*Raio,x,y,z*/) || IsPlayerInRangeOfPoint(playerid,/*Raio,x,y,z*/))
        return true;
    return false;
}
Reply


Messages In This Thread
[OFF][Ajuda] Com comandos - by MatheusgabrielDS - 17.04.2012, 19:11
Re: [Ajuda] Com comandos - by CidadeNovaRP - 17.04.2012, 19:15
Re: [Ajuda] Com comandos - by zbt - 17.04.2012, 19:50
Re: [Ajuda] Com comandos - by CidadeNovaRP - 17.04.2012, 19:51
Re: [Ajuda] Com comandos - by MatheusgabrielDS - 17.04.2012, 20:15
Re: [Ajuda] Com comandos - by CidadeNovaRP - 17.04.2012, 20:28
Re: [Ajuda] Com comandos - by MatheusgabrielDS - 17.04.2012, 21:26
Re: [Ajuda] Com comandos - by CidadeNovaRP - 18.04.2012, 15:52

Forum Jump:


Users browsing this thread: 1 Guest(s)