[Pedido] Sistema de trancar carros Orgs
#5

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
 new string[256];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    SendClientMessage(playerid, 0xFFFFFFAA, "BNC ~> Ligue seu veiculo apertando {E31919}CTRL");
    format(string, sizeof(string), "* %s Entra no veiculo.", sendername);
    ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    if(motor[playerid] == 1)
    {
    motor[playerid] = 0;
    SendClientMessage(playerid, 0xFFFFFFAA, "BNC ~> Ligue seu veiculo apertando {E31919}CTRL");
    }
    if(Trancado[vehicleid] >= 1)
    {
        if(PlayerInfo[playerid][pAdmin] > 0 || ispassenger) { }
        else
        {
            new Float:x,Float:y,Float:z,Float:a;
            GetPlayerPos(playerid,x,y,z);
            GetPlayerFacingAngle(playerid,a);
            SetPlayerPos(playerid, x, y, z+0.3);
            SetPlayerFacingAngle(playerid, a);
            SendClientMessage(playerid, COLOR_YELLOW, "Veiculo Trancado!");
        }
    }
    return true;
}









pawn Код:
else if(IsASbtCar(newcar))
            {
                if(GetPlayerOrg(playerid) != 40)
                {
                    SendClientMessage(playerid, COR_GRO, "Vocк nгo й do SBT SF, por isso nгo tem a chave desse veнculo !");
                    RemovePlayerFromVehicleEx(playerid);
                }
            }
Reply


Messages In This Thread
Sistema de trancar carros Orgs - by The_MentalistRSF - 21.11.2012, 23:16
Re: Sistema de trancar carros Orgs - by Petrick™ - 21.11.2012, 23:17
Re: Sistema de trancar carros Orgs - by The_MentalistRSF - 21.11.2012, 23:19
Re: Sistema de trancar carros Orgs - by Petrick™ - 21.11.2012, 23:21
Re: Sistema de trancar carros Orgs - by The_MentalistRSF - 21.11.2012, 23:22

Forum Jump:


Users browsing this thread: 1 Guest(s)